15 require_once
'libs/composer/vendor/autoload.php';
21 $pdf->SetCreator($job->getCreator());
22 $pdf->SetAuthor($job->getAuthor());
23 $pdf->SetTitle($job->getTitle());
24 $pdf->SetSubject($job->getSubject());
25 $pdf->SetKeywords($job->getKeywords());
31 $pdf->SetMargins($job->getMarginLeft(), $job->getMarginTop(), $job->getMarginRight());
34 $pdf->SetAutoPageBreak($job->getAutoPageBreak(), $job->getMarginBottom());
35 $pdf->setImageScale($job->getImageScale());
36 $pdf->SetFont(
'dejavusans',
'', 10);
38 $pdf->setSpacesRE(
'/[^\S\xa0]/');
49 foreach ($job->
getPages() as $page) {
52 $pdf->writeHTML($page,
true,
false,
true,
false,
'');
const PDF_MARGIN_HEADER
Header margin.
const PDF_FONT_SIZE_MAIN
Default main font size.
const PDF_FONT_SIZE_DATA
Default data font size.
const PDF_FONT_NAME_MAIN
Default main font name.
PHP class for generating PDF documents without requiring external extensions.
const PDF_UNIT
Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
const PDF_PAGE_ORIENTATION
Page orientation (P=portrait, L=landscape).
Create styles array
The data for the language used.
Class ilPDFGenerationJob.
const PDF_FONT_NAME_DATA
Default data font name.
const PDF_PAGE_FORMAT
Page format.
const PDF_FONT_MONOSPACED
Default monospaced font name.
static generatePDF(ilPDFGenerationJob $job)
const PDF_MARGIN_FOOTER
Footer margin.