Hi,
I have generated a document (docx) purely from HTML. One of the requirements is to convert this docx file to PDF. Everything is working as expected, however, the document header is missing after it was converted to PDF, while the docx file that was initially generated, the header is present.
Here is the script I used to create the document:
$phpdocx = new CreateDocx(); $headerText = new WordFragment($phpdocx, 'defaultHeader'); $headerText->embedHTML($header); $phpdocx->addHeader(array('default' => $headerText)); $phpdocx->embedHTML($body); $phpdocx->createDocx('/output/' . $filename);
How can I make the header appear in the converted file? Ay suggestion?
Thank you.