ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 require_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 }
Class ilPDFGeneration.
const PURPOSE_PDF
static prepareGeneration()
Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called bef...
Class ilPDFGenerationJob.
static getInstance()
Singleton: get instance.
static doJob(ilPDFGenerationJob $job)
static generatePDF(ilPDFGenerationJob $job)