function pageToPDF($page, $template, $text) { $pdf = new concat_pdf('P', 'mm', 'Letter'); $pdf->setFiles($page); //$files is an array with existing PDF files. $pdf->setInput($text, $template); $pdf->concat(); $pdf->Output('boo.pdf', 'I'); }
function _endpage() { if($this->angle!=0) { $this->angle=0; $this->_out('Q'); } parent::_endpage(); }