Forum


Replies: 5   Views: 1298
Extra space printed before the replaced variable with "replacevariablebyhtml"
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  · 01-10-2020 - 15:39

Hello,

Depending on the Tidy setup you may need to set removeLineBreaks to true or edit DOMPDF_lib.php to apply the change explained in our previous reply:

replace:

'wrap' => 0,

by a very high value, for example:

'wrap' => 99999999999999,

You can find DOMPDF_lib in the classes folder of phpdocx (Classes/Phpdocx/Libs folder in the namespace package).

All users with the same issue have solved it applying one of the previous fixes. If ater testing both you don't solve the issue, please send the DOCX output to contact[at]phpdocx.com with the PHP version you are using and we'll check it it's the same or other issue.

Regards.