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.
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
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.
same error from cil
Path is also correct
Edited by cinngigi ·
20-01-2015 - 13:37
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.
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
Please contact us: contact[at]phpdocx.com. We need to check it directly.
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.