Forum


Replies: 3   Views: 979
Pdf conversion: table cell padding stripped
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 admin  · 15-11-2021 - 13:51

Hello,

The problem is that the attached PDF documents have not been generated with the same version of LibreOffice (you can read this same information with a PDF viewer):

  • Sample - CLI.pdf: generated with LibreOffice 7.1
  • Sample - PHP.pdf: generated with LibreOffice 6.0

LibreOffice 6.0 is a very old version and it's not returning a good conversion. Please use LibreOffice 7 to get a proper conversion. You have not used the same version of LibreOffice: LibreOffice 7.1 in CLI and LibreOffice 6.0 with PHP.

If your server has more than one version of LibreOffice installed, please check you are setting the path in config/phpdocxconfig.ini to the correct version of LibreOffice you want to use. For example, if LibreOffice 7 is installed in /opt/libreoffice7.1:

; libreoffice installation path, absolute path
path = "/opt/libreoffice7.1/program/soffice"

Regards.