php - TCPDF: How to store a pdf page separately? -
my php script generates multiple page document tcpdf that:
foreach($data $datarow) { // .... $this->writehtmlcell(...); $this->addpage(); } $this->output(...);
this works perfectly. have store each single page separately. in other words: every foreach-iteration must store current page single pdf file. possible?
move $this->output(...);
function inside foreach function.
foreach($data $datarow) { // .... $this->writehtmlcell(...); $this->addpage(); $this->output(...); }
Comments
Post a Comment