Forum


Replies: 2   Views: 3304
Convertion of 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 tinu  · 05-04-2013 - 12:51

Hi all,

I am using corporate license and openoffice 3.4
I have also started openoffice headless service.

When I convert my docx to pdf, the header, footer(addHeader() and addFooter functions) and pagebreak('type' => 'page') are all not working in my pdf, but they work in docx.

I am using the below code for conversion:
-------------------------------------------------------------------------
$docx->createDocx('report');
$document = new TransformDoc();
$document->setStrFile('report.docx');
$document->generatePDF();
-------------------------------------------------------------------------
Please let me know what's the issue.

Thanks in advance,
Tinu