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 09:02:59.824875-07 by jmgdoc in response to 12844
Re: need to change and ad text in a given frame
Ugh.. it's a bit complicated. First, create an appropriate paragraph style with an arbitrary name:
$doc->createStyle( "ComicMS11", family => 'paragraph', parent => "Standard", properties => { -area => 'text', 'style:font-name' => 'Comic Sans MS', 'fo:font-size' => '11pt' } );

Then declare the font. The smartest way consists of importing the font from another document where it's already in use:
$doc2 = odfDocument(file => "foo.odt", part => 'content'); $doc->importFontDeclaration($doc2, "Comic Sans MS");

Otherwise, a brute force XML font declaration must be done.
You can follow the example at OpenOffice::OODoc::Styles::importFontDeclaration

When all this stuff is ready, you can append a paragraph using the new style to the frame:
$doc->appendParagraph( text => "TEST INSERT TEKST", style => "ComicMS11" );
Direct Responses: 12846 | Write a response