Forum


Replies: 1   Views: 3562
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

Hello

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->enableCompatibilityMode();
 $docx->replaceVariableByText(['EXAMPLE' => 'value']);

 $docx->createDocx($docXFile);
 $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.

Thanks.