Forum


Replies: 1   Views: 3740
Problem of page break
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by flo  · 15-03-2012 - 09:31

We are trying new features of PHPDocx and the page break, but it never work with a HTML before the page break.

Does the Page Break work only with $docx->addText($text); ?

We are trying to do :
$docx->addTemplate($fichier); //Add the template document
$docx->addTemplateVariable('TABLEAU', $lignes_tableau, 'html'); // Replace variable of a table with tr and td.
$docx->addBreak('page'); // Try to use a page break
$docx->addText('Lorem ipsum dolor sit amet, consectetur adipisicing elit'); //Add text to force the page break