ILIAS  release_7 Revision v7.30-3-g800a261c036
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
17{
18 public static function doJob(ilPDFGenerationJob $job)
19 {
20 /*
21 * This place currently supports online the TCPDF-Generator. In future versions/iterations, this place
22 * may serve to initialize other mechanisms and route jobs to them.
23 */
24 require_once 'class.ilTCPDFGenerator.php';
26 }
27
33 public static function prepareGeneration()
34 {
35 include_once './Services/MathJax/classes/class.ilMathJax.php';
36
37 // TCPDF supports only embedded PNG images
38 // use high dpi to get a good result when the PDF is zoomed
39 // zoom factor is adjusted to get the same image size as with SVG in the browser
42 ->setDpi(600)
43 ->setZoomFactor(0.17);
44 }
45}
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)