ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilPDFGeneration.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'class.ilPDFGenerationJob.php';
5
16{
17 public static function doJob(ilPDFGenerationJob $job)
18 {
19 /*
20 * This place currently supports online the TCPDF-Generator. In future versions/iterations, this place
21 * may serve to initialize other mechanisms and route jobs to them.
22 */
23 require_once 'class.ilTCPDFGenerator.php';
25 }
26
32 public static function prepareGeneration()
33 {
34 include_once './Services/MathJax/classes/class.ilMathJax.php';
35
36 // TCPDF supports only embedded PNG images
37 // use high dpi to get a good result when the PDF is zoomed
38 // zoom factor is adjusted to get the same image size as with SVG in the browser
41 ->setDpi(600)
42 ->setZoomFactor(0.17);
43 }
44}
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Singleton: get instance.
const PURPOSE_PDF
Class ilPDFGenerationJob.
Class ilPDFGeneration.
static prepareGeneration()
Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called bef...
static doJob(ilPDFGenerationJob $job)
static generatePDF(ilPDFGenerationJob $job)