I've a similar problem; but I don't get any error messages. It's the latest version of phpdocx
my code is:
$docx->createDocx('/tmp/example_header');
$docx->enableCompatibilityMode();
$docx -> transformDocx('example_header.docx','example_header.pdf');
the docx is created fine but not the pdf file.
my soffice -headless is up and running
if I run the code 'java -jar <path to the jar> docx pdf on command line it works fine.
if I run the above php code with php-cli it works fine.
If I run the php file via web the docs is created but not the pdf. I changed the system call and added the second param. @system(command,$retval)
The $retval is not zero which indicates an error, in this case 127. That could if I understand it correct be an indication of an permission problem.
so I logged in with another user; who has the "other" permission. The above tests works fine with this user.
any suggestions?