Forum


Replies: 10   Views: 7089
Dynamic fields with default docx template
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 isfor  · 17-02-2016 - 10:32

I included dompdf class but pdf is very different from original docx: it misses some styles and loses header and footer.

This is my code:

    require_once 'phpdocx/classes/TransformDoc.inc';
    $docx2 = new TransformDoc();
    $docx2->setStrFile('phpdocx/parte1d.docx');
    $docx2->generateXHTML();
    $html = $docx2->getStrXHTML();
    $docx2->generatePDF('phpdocx/parte1d.pdf');