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