Forum


Replies: 2   Views: 3331
Transformdocx do nothing
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 unicorn  · 17-10-2013 - 07:43

I ran the following code but nothing happens (I can't find the output pdf file)



code:



 




$path = "http://mypath/test.docx";
$temp_dir = dirname(__FILE__)."/temp";
require_once '../phpdocx_pro_conv/classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->enableCompatibilityMode();
$docx->transformDocx($path,"$temp_dir/test.pdf", $temp_dir);


note:




I do not want to expose the path of the file but in my real code the url is valid

Posted by jorgelj  · 17-10-2013 - 09:11

Hello,



Is running OpenOffice in headless mode?. Please check these pages:



http://www.phpdocx.com/documentation/pdf-conversion-plugin-installation-guide



http://www.phpdocx.com/help/conversion-plugin-docx-to-pdf



Regards.