Forum


Replies: 3   Views: 1695
Columns setting after converted to pdf
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 kobbe  · 29-05-2020 - 07:29

We are using CreateDocxFromTemplate to open a docx, modify it and then create it with createDocx.
To create a PDF file we use transformDocument with libreoffice.

There is two issues we can not figure out.

1)
In PDF the "A. Lorem" is all underlined, in the docx only "Lorem" is.

2)
Looks like a setting is activated that makes column equal height in the PDF, in docx they are not.
We found a way to get equal height in word files also (by adding "continous section break" in end of file), but in this case we do not want it.

Example files:
Original docx - http://by-fireld.se/org.docx
Docx created via phpdocx (looks same as original): https://by-fireld.se/phpdocx.docx
PDF file created from the phpdocx file: http://by-fireld.se/libre.pdf

Posted by admin  · 29-05-2020 - 09:19

Hello,

We have checked the documents. The problem is you are using a very old version of LibreOffice (4.3) to transform the documents, please update to the latest release (www.libreoffice.org). Both issues will be solved after doing the update; we have checked both DOCX using LibreOffice 6 and the transformation is correct.

Regards.

Posted by kobbe  · 02-06-2020 - 10:45

We upgraded server and now got version 5.2.7. It fixed both problems, so great! Thank you! =)

Found another issue, when transformed to PDF it seem to loose Hyphenation setting that we set to Automatic. If you need example word and pdf files then just say. :)

Posted by admin  · 02-06-2020 - 12:17

Hello,

Please send both files to contact[at]phpdocx.com to be checked. We also recommend you to use the latest release of LibreOffice (6), LibreOffice 5.2 was launched about four years ago and many improvements have been done since then.

Regards.