ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPDFGeneration Class Reference

Class ilPDFGeneration. More...

+ Collaboration diagram for ilPDFGeneration:

Static Public Member Functions

static doJob (ilPDFGenerationJob $job)
 
static prepareGeneration ()
 Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called before any content is processed. More...
 

Detailed Description

Class ilPDFGeneration.

Dispatcher to route PDF-Generation jobs to the appropriate handling mechanism.

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$
Deprecated:

Definition at line 16 of file class.ilPDFGeneration.php.

Member Function Documentation

◆ doJob()

static ilPDFGeneration::doJob ( ilPDFGenerationJob  $job)
static

Definition at line 18 of file class.ilPDFGeneration.php.

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 }
static generatePDF(ilPDFGenerationJob $job)

References ilTCPDFGenerator\generatePDF().

Referenced by ilObjWikiGUI\pdfExportObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareGeneration()

static ilPDFGeneration::prepareGeneration ( )
static

Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called before any content is processed.

Definition at line 33 of file class.ilPDFGeneration.php.

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 }
static getInstance()
Singleton: get instance.
const PURPOSE_PDF

References ilMathJax\getInstance(), and ilMathJax\PURPOSE_PDF.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: