15 require_once
'tcpdf/tcpdf.php';
18 $pdf =
new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT,
true,
'UTF-8',
false);
28 $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,
'', PDF_FONT_SIZE_MAIN));
29 $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA,
'', PDF_FONT_SIZE_DATA));
30 $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
32 $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
33 $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
36 $pdf->SetFont(
'dejavusans',
'', 10);
50 $pdf->writeHTML($page,
true,
false,
true,
false,
'');
PHP class for generating PDF documents without requiring external extensions.
Class ilPDFGenerationJob.
static generatePDF(ilPDFGenerationJob $job)