php - TCPDF document break -
i have script creates report pdf containing multiple pages through tcpdf. works fine. want creating pdf containing multiple reports. works fine point have 1 large pdf containing pages of reports.
my problem reveals when printing pdf on double sided paper. if report contains uneven number of pages following report start on backside of last page of previous report.
is there way of telling tcpdf start new document within document printing on both sides work correctly?
my code (php):
$this->pdf = new tcpdf(); // loop through reports foreach($report $report): // add pages report foreach($reportpages $page): $this->pdf->addpage(); endforeach; // here tell start new document $this->pdf->adddocument(); // can not find in docs endforeach; // ouput pdf $this->pdf->output('report.pdf');
thankful out there!
Comments
Post a Comment