PHP TCPDF Unwanted black line

Sometime, on your generated pdf , you will see appear black line in the top or near the top.
Black line can appear too at the bottom of your generated pdf.

For remove the unwanted top and bottom black line on your generated pdf when using the TCPDF library, try to use this instructions :

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

This article may contains affiliates link.

Leave a Comment