Forum


Replies: 7   Views: 6474
Generate pdf, convert plugin, no output pdf file
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 magira  · 13-10-2014 - 07:19

Hello, Thanks for the answer. I'm not on Linux. I use Apache Server on Windows 7. When I run this command : ... $docx->createDocx('./template/4_transform_docx_to_pdf'); $docx->transformDocument('./template/4_transform_docx_to_pdf.docx', './result/4_transform_docx_to_pdf.pdf', null, array( 'method' => 'script','debug' => true)); I can read on the error log a problem with Open Office : Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not load input document at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:131) Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one. Reminder : if I run the above php code with php-cli it works fine, but not created pdf file if i use apache (localhost). The Debug mode just print "Done." The docx is created fine but not the pdf file. my soffice -headless is up and running Is there someone who have a similar problem ? How can i solve it ? Regards.