Forum


Replies: 4   Views: 5174
Blank pdf from created *.docx files (v3.7 pro)
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 Ian Bibo  · 09-07-2014 - 02:50

Hello Everyone, A bit of background first: our site has moved servers, under the previous set-up, everything worked well, both *.docx and *.pdf files were created. Our new set-up is essentially the same, but running in a virtual machine environment on a Microsoft Server, (I believe). Running the check.php, gives the OK for everything, and here is some of the information for the set-up: PHP_VERSION: 5.4.30 PHP_OS: Linux PHP_UNAME: Linux auws310.xxxx.xxxx.xxxx.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Fri Apr 11 17:27:00 EDT 2014 x86_64 CODE: SERVER_NAME: xxxx.xxxx.com SERVER_SOFTWARE: Apache SERVER_ADDR: xxx.xxx.xxx.xxx SERVER_PROTOCOL: HTTP/1.1 HTTP_HOST: xxxx.xxxx.com HTTP_X_FORWARDED_FOR: PHP_SELF: /phpdocx/check.php XSLTProcessor: 1 ZipArchive: 1 DomDocument: 1 SimpleXMLElement: 1 Tidy: 1 IS_WRITABLE DEFAULT TEMP: 1 On our new server, the generation of *.docx is not a problem, I can add dynamic information with 'addTemplateVariable' and images (addTemplateImage) also and create a *.docx with no issues. Yet, when converting that file to a PDF, only the image is present, no text at all. The sever is running Centos 6.5. For testing purposes, SELinux is switched off. When trying to create a PDF from a link, the error log shows: sh: line 1: 30743 Aborted /var/www/html/portal/phpdocx/classes/../lib/OdfConverter/64/OdfConverter /I /var/www/html/portal/phpdocx_temp/tempDocX_53bc8dc533a5b.docx /O /var/www/html/portal/phpdocx_temp/tempOdt_53bc8dc535815.odt > /dev/null 2>&1 When running the same script from the command line, we get: [root@server] [/var/www/html/portal/phpdocx/classes]# /var/www/html/portal/phpdocx/classes/../lib/OdfConverter/64/OdfConverter /I /var/www/html/portal/phpdocx_temp/tempDocX_53bc8dc533a5b.docx /O /var/www/html/portal/phpdocx_temp/tempOdt_53bc8dc535815.odt [INFO][/var/www/html/portal/phpdocx_temp/tempDocX_53bc8dc533a5b.docx] Converting tempDocX_53bc8dc533a5b.docx into tempOdt_53bc8dc535815.odt Conversion succeeded [INFO][/var/www/html/portal/phpdocx_temp/tempDocX_53bc8dc533a5b.docx] Total conversion time: 00:00:02.2271800 Done. Any ideas on what might be the problem? (If any other / further information is required, please let me know.) Thanks in advance, Ian.