Forum


Replies: 2   Views: 1924
Docx->pdf - each word in new line
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 Dan  · 16-09-2019 - 19:41

Hi!

I'm creating a docx from a RTE-Element (HTML) and that works just fine.
But when the word file gets transformed into a pdf each word is in a new line (using Libreoffice on Linux). 

So a 

Word1 Word2 Word3

becomes a

Word1
Word2
Word3

 

See the screenshot for an example -> https://ibb.co/D84qM8y

I hope anybody has an idea.

 

 

Posted by admin  · 17-09-2019 - 06:41

Hello,

Please send to contact[at]phpdocx.com the DOCX and we'll check it. What version of LibreOffice are you using?

Also please note that embedHTML includes disableWrapValue and removeLineBreaks options to prevent adding blank spaces and line breaks when adding HTML. Some versions of PHP Tidy add break lines when doing the transformation from HTML to DOCX that MS Word ignores but LibreOffice shows. Please try to enable both options.

Regards.

Posted by Dan  · 17-09-2019 - 09:56

Hi!

disableWrapValue=>true did the job.

Thank you for your support.