Forum


Replies: 4   Views: 5389
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 - 23:36

Hello, From the advanced/Transform.php script, the following method was used: $docx->transformDocx('example_text.docx', 'example_text.pdf', null, array('odfconverter' => false, 'debug' => true )); The output was: [root@server] [/var/www/html/portal/phpdocx/examples/advanced]# php Transform.php PHP Warning: log4php: Configuration failed. Error loading configuration file: Comment not terminated Using default configuration. in /var/www/html/portal/phpdocx/lib/log4php/configurators/LoggerConfiguratorDefault.php on line 475 INFO - Create a temp file to use as initial ZIP file. DOCX is a ZIP file. INFO - Set language. INFO - Enable compatibility mode. INFO - Add text to word document. INFO - Set DOCX name to: example_text. INFO - DOCX is a new file, not a template. INFO - Remove existing template tags. INFO - Add word/document.xml content to DOCX file. INFO - Close ZIP file INFO - Copy DOCX file using a new name. Jul 10, 2014 8:51:34 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect INFO: connected Jul 10, 2014 8:51:36 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing INFO: disconnected The two files, 'example_text.docx' and 'example_text.pdf' are created. The *.docx has the text added from the script. The *.pdf file is blank. We are using Apache OpenOffice v4.1.0 64-bit. Thank you for your help, Ian.