Replies: 1   Views: 3426
Blank pdf page when transforming from 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 dennisdc  · 14-04-2016 - 14:26


Whenever I transform a docx to a PDF I get a blank page at the end of my document.
It doesn't happen when I only have like 5 lines. But usually 2/3 of the page is filled with text.

 $docx = new CreateDocxFromTemplate($template);
 $docx->replaceVariableByText(['EXAMPLE' => 'value']);

 $docx->transformDocument($docXFile, $pdfFile, null, ['odfconverter' => false]);

I am running with OpenOffice v4.4.1

There are not empty lines or page breaks in the template.


Posted by admin  · 14-04-2016 - 17:08


We recommend you to use the plugin based on LibreOffice to get the best output. If you still have issues please send to contact[at] the DOCX to check it.