Thank you for your reply.
I added the macro to the file
C:\users\xxxx\Appdata\Roaming\LibreOffice\4\User\Basic\Standard\Module1.xba
I have no code error,
But no PDF file generates with this call:
$docx->transformDocument('doc.docx', 'doc.pdf','libreoffice' , array('pdfa1'=> true));
I have exhausted all my resources, and I tested all the solution you have offered me.
I don't understand where I make a mistake.
Without the pdfa option, the PDF gets good.
:(