Forum


Replies: 9   Views: 7762
Openoffice version
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 peter  · 11-04-2013 - 12:13

hi

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?