Forum


Replies: 6   Views: 4399
Libreoffice conversion issue
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 cinngigi  · 20-01-2015 - 11:43

See below error when invoked sample_1.php Warning: rename(./phpdocx4.5/examples/FormatConversion/example_text.pdf/phpdocx4./phpdocx4.5/examples/FormatConversion/example_text.pdf5/examples/FormatConversion/example_text.pdf,./phpdocx4.5/examples/FormatConversion/example_text.pdf): No such file or directory in /home/..../public_html/phpdocx4.5/classes/TransformDocAdvLibreOffice.inc on line 80 Please help

Posted by admin  · 20-01-2015 - 11:54

Hello, Did you set the path to LibreOffice in the phpdocxconfig.ini file? Please run the same example using the CLI mode and enabling the debug option. Regards.

Posted by cinngigi  · 20-01-2015 - 12:40

Edited by cinngigi · 20-01-2015 - 13:37
same error from cil Path is also correct

Posted by admin  · 20-01-2015 - 14:55

Hello, Please run the conversion standalone. For example: $ /opt/libreoffice4.3/program/soffice --invisible --convert-to pdf document.docx The document.docx file must exist before running the command. And change the path to libreoffice before running it. Note that LibreOffice can't be running when you invoke this transformation; so stop/kill every LibreOffice process. Regards.

Posted by cinngigi  · 20-01-2015 - 15:35

standalone is working and got out put in the program file. But when i try to execute from php script it is not getting converted Regards

Posted by admin  · 20-01-2015 - 15:55

Hello, Please contact us: contact[at]phpdocx.com. We need to check it directly. Regards.

Posted by admin  · 21-01-2015 - 09:49

Hello, The problem is that there are two versions of LibreOffice installed: 4.0 and 4.3. You need to remove one, and upgrade the 4.0 versionif you keep the default version. Regards.