Forum


Replies: 8   Views: 9272
Error in 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 baseet  · 15-09-2014 - 09:05

i use centos and successfully docx file generated but the PDF not found there is no error any one have this issue ?

Posted by admin  · 15-09-2014 - 12:16

Hello, Please run the included example using the CLI mode and enabling the debug mode of the transformDocument method: http://www.phpdocx.com/api-documentation/format-conversion/convert-Word-docx-into-pdf-with-PHP And check this info: http://www.phpdocx.com/documentation/pdf-conversion-plugin-installation-guide Regards.

Posted by baseet  · 16-09-2014 - 07:12

this is the error .. Strict Standards: Declaration of FPDF::_putstream() should be compatible with TCPDF::_putstream($s, $n = 0) in /home/baseet/public_html/pdf_lib/lib/fpdi/fpdi2tcpdf_bridge.php on line 167 Strict Standards: Declaration of FPDF_TPL::AddPage() should be compatible with TCPDF::AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false) in /home/baseet/public_html/pdf_lib/lib/fpdi/fpdf_tpl.php on line 449 Strict Standards: Declaration of FPDF_TPL::SetFont() should be compatible with TCPDF::SetFont($family, $style = '', $size = 0, $fontfile = '', $subset = 'default') in /home/baseet/public_html/pdf_lib/lib/fpdi/fpdf_tpl.php on line 449 Strict Standards: Declaration of FPDF_TPL::Link() should be compatible with TCPDF::Link($x, $y, $w, $h, $link, $spaces = 0) in /home/baseet/public_html/pdf_lib/lib/fpdi/fpdf_tpl.php on line 449 Strict Standards: Declaration of FPDF_TPL::Image() should be compatible with TCPDF::Image($file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false, $dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false, $hidden = false, $fitonpage = false) in /home/baseet/public_html/pdf_lib/lib/fpdi/fpdf_tpl.php on line 449

Posted by admin  · 16-09-2014 - 07:47

Hello, Strict Standards are not errors but notice messages. You can hide them in the PHP config. Regards.

Posted by baseet  · 16-09-2014 - 08:50

I Know that ,,, but the PDF did not create until now Java installed but this is what i have first i search for soffice root@swamed [~]# find / -name soffice /opt/openoffice4/program/soffice /usr/bin/soffice /home/baseet/public_html/pdf_lib/lib/openoffice/openoffice.org3/program/soffice I run this in putty /home/baseet/public_html/pdf_lib/lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard; javaldx: Could not find a Java Runtime Environment! /home/baseet/public_html/pdf_lib/lib/openoffice/openoffice.org3/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory so .... :(

Posted by baseet  · 16-09-2014 - 10:54

root@swamed [/home/baseet]# java -version java version "1.7.0_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) root@swamed [/home/baseet]# /home/baseet/public_html/pdf_lib/lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard; javaldx: Could not find a Java Runtime Environment! /home/baseet/public_html/pdf_lib/lib/openoffice/openoffice.org3/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory and this is java version

Posted by admin  · 16-09-2014 - 11:53

Hello, Please install this library: libfreetype.so.6 And run again. As you read on the documentation (http://www.phpdocx.com/documentation/pdf-conversion-plugin-installation-guide) sometimes you need to install your own version of OpenOffice. Depending on the GLIBC version. Regards.

Posted by baseet  · 18-09-2014 - 11:59

know when Iam run $ /opt/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard no errors and no pdf file generated when i am running the transform.php

Posted by admin  · 19-09-2014 - 07:07

Hello, Please follow these steps: 1. Start OpenOffice in headless mode. 2. Run the included example of the transformDocument using the CLI mode and enabling the debug mode of this method. Not the phpdocx debug option but the included in this method. 3. If your OS is missing any library install them and try the step 2 again. Post any other issue you get. Regards.