我使用mpdf生成pdfs。因此在处理HTML页脚时存在问题。我的配置是这样的;
private $pdfMode = ''; //For loading fonts
private $pageFormat = 'A4'; //Default is A4 size
private $marginLeft = 2;
private $marginRight = 2;
private $marginTop = 2;
private $marginBottom =2;
private $marginHeader = 9;
private $marginFooter = 9;
function __construct() {
parent::mPDF($this->pdfMode, $this->pageFormat, '', '',$this->marginLeft,$this->marginRight, $this->marginTop, $this->marginBottom, $this->marginHeader, $this->marginFooter);
$this->setAutoTopMargin= true;
$this->setAutoBottomMargin = true;
parent::SetAutoFont(AUTOFONT_ALL);
}
当设置AutoTopMargin为true时,即使标题太大,它也能正常工作。但页脚内容被裁剪,身体和页脚之间有太多空间
请帮忙...