21 $pdf_output = self::preprocessHTML($pdf_output);
28 require_once
'./Services/PDFGeneration/classes/class.ilPDFGeneration.php';
31 $job->setAutoPageBreak(
true)
32 ->setCreator(
'ILIAS Test')
35 ->setMarginRight(
'20')
37 ->setMarginBottom(
'20')
38 ->setOutputMode($output_mode)
39 ->addPage($pdf_output);
46 $pdf_css_path = self::getTemplatePath(
'test_pdf.css');
47 return '<style>' . file_get_contents($pdf_css_path) .
'</style>' . $html;
52 $module_path =
"Modules/Test/";
55 include_once
"Services/Style/classes/class.ilStyleDefinition.php";
58 $fname =
"./Customizing/global/skin/".
62 if($fname ==
"" || !file_exists($fname))
64 $fname =
"./".$module_path.
"templates/default/".basename($a_filename);
Class ilTestPDFGenerator.
static preprocessHTML($html)
static getCurrentSkin()
get the current skin
static getTemplatePath($a_filename)
Class ilPDFGenerationJob.
static generatePDF($pdf_output, $output_mode, $filename=null)
const PDF_OUTPUT_DOWNLOAD
static doJob(ilPDFGenerationJob $job)