function Create() { $this->content = utf8_decode($this->_ParseHTML($this->content)); $pdf = new HTML2FPDF(); $pdf->ShowNOIMG_GIF(); $pdf->DisplayPreferences('HideWindowUI'); $pdf->AddPage(); $pdf->WriteHTML($this->content); $pdf->Output(\Cx\Lib\FileSystem\FileSystem::replaceCharacters($this->title)); }
echo gettext("No calls in your selection"); ?> .</h3></center> <?php } ?> </center> <?php if ($exporttype != "pdf") { ?> <?php include "PP_footer.php"; ?> <?php } else { // EXPORT TO PDF $html = ob_get_contents(); // delete output-Buffer ob_end_clean(); $pdf = new HTML2FPDF(); $pdf->imgpath = "../../"; $pdf->DisplayPreferences('HideWindowUI'); $pdf->ShowNOIMG_GIF(); $pdf->AddPage(); $pdf->WriteHTML($html); $html = ob_get_contents(); $pdf->Output('CC_invoice_' . date("d/m/Y-H:i") . '.pdf', 'I'); }