【发布时间】:2015-05-06 14:05:49
【问题描述】:
我使用 mpdf 从 html 生成 pdf。
有一个问题是生成的 pdf 会多显示一页。如果内容在第 1 页结束,则生成 2 页,如果内容在第 2 页结束,则生成三页。
这是我的代码-
<?php
include("mpdf/mpdf.php");
$mpdf=new mPDF('fsalbertpro','A4','','' , 0 , 0 , 0 , 0 , 0 , 0);
$html='----'; // this variables contain all css and HTML to be shown in PDF
ob_clean(); // cleaning the buffer before Output()
$mpdf->SetDisplayMode('fullpage');
$mpdf->list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list
$mpdf->WriteHTML($html);
$mpdf->Output();
?>
那么我怎样才能删除最后一个空白页。?
【问题讨论】:
-
您好,您解决了这个问题吗?