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

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -