Forum


Replies: 1   Views: 2530
Horizontal line at bottom of merged 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 AurelienC  · 23-08-2018 - 13:32

Hello,

I'm using Version 7 and an advanced licence.

I find myself having the same issue as here : https://www.phpdocx.com/en/forum/default/topic/927

An horizontal line appear at the bottom of the page if it's a merged PDF. Not in a merged DOCX however.
In MultiMerge.inc, I already had $pdf->setPrintHeader(false); as explained in the post above but still the issue is here.

So in /phpdocx/Classes/Phpdocx/Utilities/MultiMerge.inc I added the following :

$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);

It seems to work but do you have a better solution ?

Thanks

Best regards

Posted by admin  · 23-08-2018 - 17:49

Hello,

If you are getting a horizontal line when merging PDF documents the best solution is adding the line you have already added. That line prevents inserting that line;  we move the question to the dev team to consider adding the same method to the stable branch.

Regards.