I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-07-28 14:59:47.137924-07 by jmgdoc in response to 12846
Re: need to change and ad text in a given frame

Forget my previous answer. There is a simpler and more convenient solution, using setTextBoxContent in order to attach a customized text paragraph to an existing frame.
my $doc = ooDocument(file => "C:\\macros\\OOSjablonen\\test.odt"); # create the needed style $doc->createStyle( "ComicMS11", family => 'frame', parent => "Standard", properties => { -area => 'text', 'style:font-name' => 'Comic Sans MS', 'fo:font-size' => '12pt' } ); # declare the font used by the style $doc->importFontDeclaration( '<style:font-face ' . 'style:name="Comic Sans MS" ' . 'svg:font-family="Comic Sans MS"/>' ); # create a paragraph using this style $paragraph = $doc->createParagraph( "TEST INSERT TEXT", "ComicMS11" ); # use this paragraph as the text # of the target frame $doc->setTextBoxContent('test', $paragraph); $doc->save("C:\\macros\\OOSjablonen\\test-out.odt");
Direct Responses: 12851 | Write a response