Forum


Replies: 3   Views: 1193
Libreoffice pdf export and native pdf export can not interpret linebreaks created by bulkprocessing
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  · 27-10-2020 - 14:50

Hello,

Thanks for sending the requested information Your e-mail was replied two hours ago by the support team, this is a copy of the answer:

Thanks for sending the requested information. Please edit Classes/Phpdocx/Utilities/BulkProcessing.php and in the method replaceTextContents (around line 898), replace:

$stringDoc = str_replace('__LINEBREAK__', '<w:br />', $dom->saveXML());

by:

$stringDoc = str_replace('__LINEBREAK__', '</w:t><w:br /><w:t xml:space="preserve">', $dom->saveXML());

And try again, this change should fix the issue with LibreOffice and BulkProcessing when parseLineBreaks is enabled. The same change has been applied to the current testing branch.

Regards.