Forum


Replies: 10   Views: 966
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 dev-info  · 27-02-2023 - 11:07

Thank you for your reply,
I am on version 10 phpdocx
I added the macro Sub SaveToPdfA1(cFile) ,

but it does not run on this line:

oPropertyValue.Name = "Hidden"

mentioned error:

BASIC syntax error.
Unexpected symbol: &.

My calling code is indeed the one you mentioned:
$docx->transformDocument('document.docx', 'document.pdf', 'libreoffice', array('pdfa1' => true));

and i have the latest version of libreoffice

What are my solutions?
THANKS