【发布时间】:2014-09-27 03:34:58
【问题描述】:
$style='<style>@page *{
margin-top: 0cm;
margin-bottom: 0cm;
margin-left: 0cm;
margin-right: 0cm;
}</style>';
$html ='<img src="temppng/'.$_GET['memid'].'.png" width="325.03937" height="204.094488" `/>';
include("MPDF54/mpdf.php");
$mpdf = new mPDF('utf-8', 'Letter', 0, '', 1, 1, 1, 1, 8, 8);
$mpdf->useAdobeCJK = true;
$mpdf->SetAutoFont(AUTOFONT_ALL);
`$mpdf->SetMargins(0);
$mpdf->WriteHTML('<pagebreak sheet-size="86mm 54mm" />');
$mpdf->WriteHTML($style);
$mpdf->WriteHTML($html);
$mpdf->WriteHTML('<tocentry content="150mm square" />')
$mpdf->DeletePages(1,1);
$mpdf->Output();
嗨,谁知道如何删除pdf的底部空白,这里是图像'http://tinypic.com/view.php?pic=xfdixj&s=8',我想删除底部空白,任何人都知道 怎么办?THX
【问题讨论】:
标签: mpdf