Forum


Replies: 10   Views: 904
Tranformdocument docx to pdf/a
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 admin  · 27-02-2023 - 10:48

Hello,

Using phpdocx 10, please check the docs folder included in the package. phpdocx 11 renamed this folder to macros-libreoffice.

In this folder you can read the instructions and the macros to be used with the conversion plugin based on LibreOffice. To generate PDF/A-1 files, you need to add the Generate PDF A-1.txt macro to your LibreOffice installation (as explained in How to use macros.txt) and then call:

$docx->transformDocument('document.docx', 'document.pdf', 'libreoffice', array('pdfa1' => true));

We also recommend you use the latest version of LibreOffice.

Regards.