Sorry. I don't understand, what you mean. I have a docx-template with the placeholder $body$. And $body$ is replaced with replaceVariableByHTML. I don't know, how many pages has the generated document. But I need on each page on the top a QR-code with (Page 1/12, Page 2/12 etc). The page number should stand In the footer of the generated document.
$docx = new \CreateDocxFromTemplate($filename); $docx->replaceVariableByHTML( 'body', 'block', $html, array( 'isFile' => false, 'parseDivsAsPs' => true, 'downloadImages' => false, 'useHTMLExtended' => true, ) ); $docx = new \CreateDocxFromTemplate($tempDocxFileName);