my $pagebreaked_para = $doc->appendParagraph(); $doc->setPageBreak($pagebreaked_para);