Forum


Replies: 1   Views: 1721
Unable to install and get working pdf conversion
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 dev@allsaveduk.com  · 14-07-2021 - 11:05

I am trying to install phpdocx and convert a PDF, using Libreoffice 

Check.php file: 

PHP_VERSION: 7.4.21
PHP_OS: Linux
PHP_UNAME: Linux blessed-iceberg 5.4.0-1009-aws #9-Ubuntu SMP Sun Apr 12 19:46:01 UTC 2020 x86_64
SERVER_NAME: app.allsavedconsole.com
SERVER_SOFTWARE: nginx/1.20.1
SERVER_ADDR: 10.0.1.13
SERVER_PROTOCOL: HTTP/2.0
HTTP_HOST: app.allsavedconsole.com
HTTP_X_FORWARDED_FOR: 
PHP_SELF: /index.php
ZipArchive: 1
DomDocument: 1
SimpleXMLElement: 1
Tidy: 
mbstring: 1
getenv: /home/forge
getcwd(): /home/forge/app.allsavedconsole.com/releases/20210714100300/public

checkConversion.php

OK libreoffice is set as transform method in config/phpdocxconfig.ini
OK libreoffice path is set in config/phpdocxconfig.ini
OK libreoffice main executable has been found
OK HOME environment variable is set for the current user and has the following value: /home
Warning The .config/libreoffice folder in the HOME folder must have rw access.

I can't seem to get the check to pass dispite the folder having the correct settings, /home/forge/.config:

drwxrwxrwx  3 forge forge 4096 Jul 13 15:13 libreoffice

 

When I run the sample_1.php i get: 

PHP Warning:  rename(./transformDocument_libreoffice_1.pdf,transformDocument_libreoffice_1.pdf): No such file or directory in /home/forge/app.allsavedconsole.com/releases/20210714100300/phpdocx-package/Classes/Phpdocx/Transform/TransformDocAdvLibreOffice.php on line 187

Warning: rename(./transformDocument_libreoffice_1.pdf,transformDocument_libreoffice_1.pdf): No such file or directory in /home/forge/app.allsavedconsole.com/releases/20210714100300/phpdocx-package/Classes/Phpdocx/Transform/TransformDocAdvLibreOffice.php on line 187