Replies: 5   Views: 3249
Conversion docx -> pdf is quite poor
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 organizzazione  · 26-03-2014 - 10:21

Hello All,

We purcahsed a corporate licence and everithing seems working, but we're having some issues converting documents from docx to pdf.

The document is generated, but some details are not the same or totally different...

For example:

- some cell and table borders set as "none" in DOCX are shown in PDF

- some fonts type and size set in DOCX are not the same in PDF

- some fields set in DOCX (date field, filename field) are totally wrong in PDF

Here's the code we used to convert from DOCX to PDF, and download that file:       


$docx->transformDocx($fullFileName . '.docx', $fullFileName . '.pdf');

header('Content-Type: application/pdf');

header('Content-Disposition: attachment; filename="' . $fileName . '"');

header('Content-Transfer-Encoding: binary');

header('Content-Length: ' . filesize($fullFileName));


Please note that the ODF converter is enabled and OpenOffice is correctly running in headless mode... all the checks are green in the check page.

What is the best way to convert DOCX documents with tables, headers and footers in PDF?





Posted by jorgelj  · 26-03-2014 - 12:51


Please send us the DOCX to test it.


Posted by organizzazione  · 26-03-2014 - 13:05



where I send you this doc?

NOTE: this doc is completely generayted with PHPDocx Library


Posted by jorgelj  · 26-03-2014 - 17:02


Just contact us:, and we'll reply you.


Posted by organizzazione  · 26-03-2014 - 17:45

done, thanks.