ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
16
class
ilPDFGeneration
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'
;
25
ilTCPDFGenerator::generatePDF
($job);
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
40
ilMathJax::getInstance
()
41
->init(
ilMathJax::PURPOSE_PDF
)
42
->setDpi(600)
43
->setZoomFactor(0.17);
44
}
45
}
ilPDFGeneration
Class ilPDFGeneration.
Definition:
class.ilPDFGeneration.php:16
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:33
ilPDFGenerationJob
Class ilPDFGenerationJob.
Definition:
class.ilPDFGenerationJob.php:15
ilMathJax\getInstance
static getInstance()
Singleton: get instance.
Definition:
class.ilMathJax.php:155
ilPDFGeneration\doJob
static doJob(ilPDFGenerationJob $job)
Definition:
class.ilPDFGeneration.php:18
ilTCPDFGenerator\generatePDF
static generatePDF(ilPDFGenerationJob $job)
Definition:
class.ilTCPDFGenerator.php:13
Services
PDFGeneration
classes
class.ilPDFGeneration.php
Generated on Sat Jan 18 2025 19:01:36 for ILIAS by
1.8.13 (using
Doxyfile
)