Forum


Replies: 1   Views: 4064
Pitch changes when converting docx to pdf
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 toco3  · 12-09-2014 - 14:49

We are using phpdocx to change a picture in a DOCX document and export this to PDF this is the code how we do it: require_once '/path/to/phpdocx_pro/classes/CreateDocx.inc'; $objDocx = new CreateDocx(); $objDocx->setTemporaryDirectory('/path/to/tempdir/'); $objDocx->addTemplate('/path/to/mydocument.docx'); $objDocx->addTemplateImage('MARKER', '/path/to/myimage.png'); $objDocx->createDocx('/path/to/newdocument.docx'); $objDocx->transformDocxUsingMSWord('/path/to/newdocument.docx', '/path/to/document.pdf'); Everthing is working as expected with the small (but for us important) issue that the pitches changes a bit, so that in the PDF file some text is on the next page compared to the original DOCX file. (This happens before the image!) Any idea what's going wrong here?

Posted by admin  · 15-09-2014 - 06:57

Hello, Please post or send us both documents, we'd like to check them. Word returns the best output quality when a document is transformed to PDF. Regards.