Forum


Replies: 12   Views: 4576
Generated docx and pdf vastly differ
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 acunnington  · 12-05-2014 - 16:17

Hi,

I'm generating both of my documents. The DOCX from a template, and PDF from the newly created DOCX.



For some reason unbeknownst to me, the PDF doesn't carry across the formatting that the word document had. Any ideas? It's lacking images, font sizes (the sub/superscript on 2nd), converting black underlines to gray font etc etc.



http://i.imgur.com/H6toiDw.png



This is my PDF code;




    $document = new TransformDoc();
    $document->setStrFile($filename .'.docx');
    $document->generatePDF($filename . '.pdf');


Thanks,

Harry