Forum


Replies: 1   Views: 782
Transformdocument
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 Tiago Scalco de Mello  · 29-03-2017 - 03:10

 

I am having the following error when I run the sample1.php in transformDocument

Warning: rename(./test.pdf,test .pdf): The system can not find the file specified. (code: 2) in C:\wamp64\www\phpdocx\Classes\Phpdocx\Transform\TransformDocAdvLibreOffice.inc on line 139

phpdocxconfig 

;libreoffice or openoffice
method = "libreoffice"

; libreoffice installation path, absolute path
path = "C:\Program Files\LibreOffice 5\program\soffice.exe"

 

From the command line I can convert

C:\Program Files\LibreOffice 5\program\soffice.exe --headless --convert-to pdf --outdir "C:\temp" "C:\temp\test.docx"