if ($doc->isOpenDocument) { $styles->styleProperties ("Colour", -area => 'text'); $styles->setPageBreak(position => 'after',style => "Colour"); } my $pg = $doc->appendParagraph(text => "@line[14]\n", style => "Colour" );