Extend HTML output for pagebreaks for PDF generation

Make HTML output of pagebreak compatible for the different PDF writers by combining:
http://mpdf1.com/manual/index.php?tid=110 (tested and working)
and
https://code.google.com/p/dompdf/wiki/FAQ (tested and working)
and
http://chandeshparekh.com/css-to-create-new-page-in-php-tcpdf-pdf/
This commit is contained in:
chc88 2014-11-14 17:26:23 +01:00
parent 5e68fd9bbd
commit 37ca009769
1 changed files with 9 additions and 0 deletions

View File

@ -24,4 +24,13 @@ namespace PhpOffice\PhpWord\Writer\HTML\Element;
*/
class PageBreak extends TextBreak
{
/**
* Write page break
*
* @return string
*/
public function write()
{
return '<pagebreak style="page-break-before: always;" pagebreak="true"></pagebreak>';
}
}