how TCPDF prevent the extra blank page
问题 I have create class to make page by using TCPDF. I need to convert HTML to pdf, so I using writeHTML and AcceptPageBreak() . The $html is Dynamically changed, could be very long. class MY_TCPDF extends TCPDF{ public function makePage($html){ $head_image="header.jpg"; $this->SetMargins(PDF_MARGIN_LEFT, 70, PDF_MARGIN_RIGHT); $this->setPrintHeader(false); $this->AddPage(); // get the current page break margin $bMargin = $this->getBreakMargin(); // get current auto-page-break mode $auto_page