TCPDF设置底部边距为零

Shi*_*jin 18 php pdf margin tcpdf

我在php中使用TCPDF创建pdf,我需要将我的数据包含到没有底边距的pdf中,数据将包含在页面的末尾.

$pdf->SetLeftMargin(14);
$pdf->SetTopMargin(6);
$pdf->SetFont($fontname, '', '9');
$pdf->setPrintHeader(false);
$pdf->SetFooterMargin(0);
$pdf->setPrintFooter(false);

$pdf->AddPage();
$pdf->writeHTML($html, true, 0, true, 0);
Run Code Online (Sandbox Code Playgroud)

我正在使用上面的代码.任何人都知道如何使用tcpdf从pdf中删除边距空间?

muk*_*und 64

您看到的保证金是由于pageBreak保证金

添加这个$pdf->SetAutoPageBreak(TRUE, 0); 肯定从底部删除边距