I have a simple task of adding a paragraph that has some formatted text within it. I cannot figure out how to stylize the text.
Example output: John Smith 200 Main Street single
my $doc = odfDocument(file=> 'outputfile.odt',create=> 'text');
$doc->appendParagraph(text => "John Smith 200 Main Street single", style => "optionalParagraphStyle");
$doc->save;
I've been reading the documentation on CPAN http://search.cpan.org/~jmgdoc/OpenOffice-OODoc/ I see that I can use textStyle(element [, style]) to change the style of an existing element. Do I have to first add text in order to style it?