ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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
15
class
ilPDFGeneration
16
{
17
public
static
function
doJob
(
ilPDFGenerationJob
$job)
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'
;
24
ilTCPDFGenerator::generatePDF
($job);
25
}
26
32
public
static
function
prepareGeneration
()
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
39
ilMathJax::getInstance
()
40
->init(
ilMathJax::PURPOSE_PDF
)
41
->setDpi(600)
42
->setZoomFactor(0.17);
43
}
44
}
ilPDFGeneration
Class ilPDFGeneration.
Definition:
class.ilPDFGeneration.php:15
ilMathJax\PURPOSE_PDF
const PURPOSE_PDF
Definition:
class.ilMathJax.php:13
ilPDFGeneration\prepareGeneration
static prepareGeneration()
Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called bef...
Definition:
class.ilPDFGeneration.php:32
ilPDFGenerationJob
Class ilPDFGenerationJob.
Definition:
class.ilPDFGenerationJob.php:15
ilMathJax\getInstance
static getInstance()
Singleton: get instance.
Definition:
class.ilMathJax.php:155
php
ilPDFGeneration\doJob
static doJob(ilPDFGenerationJob $job)
Definition:
class.ilPDFGeneration.php:17
ilTCPDFGenerator\generatePDF
static generatePDF(ilPDFGenerationJob $job)
Definition:
class.ilTCPDFGenerator.php:13
Services
PDFGeneration
classes
class.ilPDFGeneration.php
Generated on Fri Feb 21 2025 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)