ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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$

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

Member Function Documentation

◆ doJob()

static ilPDFGeneration::doJob ( ilPDFGenerationJob  $job)
static

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

References ilTCPDFGenerator\generatePDF().

Referenced by ilTestPDFGenerator\generatePDF(), and ilObjWikiGUI\pdfExportObject().

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  }
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 32 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().

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  }
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: