ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

References ilTCPDFGenerator\generatePDF().

Referenced by ilObjWikiGUI\pdfExportObject().

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)
+ 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.

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

Referenced by ilTestExportGUI\createTestArchiveExport(), ilObjTestGUI\createUserResults(), ilTestServiceGUI\getQuestionResultForTestUsers(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestSubmissionReviewGUI\pdfDownload(), ilObjWikiGUI\pdfExportObject(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().

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  }
const PURPOSE_PDF
static getInstance()
Singleton: get instance.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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