$styles->createStyle ( "Colour", family => 'paragraph', parent => 'Standard', properties => { -area => 'paragraph', 'fo:text-align' => 'justify' } ); if ($doc->isOpenDocument) { $styles->styleProperties ("Colour", -area => 'text'); } my $pg = $doc->appendParagraph(text => "@line[14]", style => "Colour" ); $doc -> setPageBreak($pg , position => "after",style=>"Colour");