Class ilPDFGeneratorUtils.
More...
◆ getPurposeMap()
static ilPDFGeneratorUtils::getPurposeMap |
( |
| ) |
|
|
static |
◆ getRenderers()
static ilPDFGeneratorUtils::getRenderers |
( |
| ) |
|
|
static |
◆ getSelectionMap()
static ilPDFGeneratorUtils::getSelectionMap |
( |
| ) |
|
|
static |
◆ getTestPdfDir()
static ilPDFGeneratorUtils::getTestPdfDir |
( |
| ) |
|
|
static |
◆ isRendererPlugin()
static ilPDFGeneratorUtils::isRendererPlugin |
( |
|
$path | ) |
|
|
staticprotected |
◆ prepareGenerationRequest()
static ilPDFGeneratorUtils::prepareGenerationRequest |
( |
|
$service, |
|
|
|
$purpose |
|
) |
| |
|
static |
Prepare the content processing for a PDF generation request This function should be called as in a request before any content is generated It sets the generation mode for Latex processing according the needs of the PDF renderer.
- Parameters
-
string | $service | |
string | $purpose | |
Definition at line 16 of file class.ilPDFGeneratorUtils.php.
References Vendor\Package\$e, and $service.
Referenced by ilTestExportGUI\createTestArchiveExport(), ilParticipantsTestResultsGUI\createUserResults(), ilObjPortfolioGUI\exportPDF(), ilTestServiceGUI\getQuestionResultForTestUsers(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestSubmissionReviewGUI\pdfDownload(), ilObjWikiGUI\pdfExportObject(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
19 $map = self::getRendererMapForPurpose(
$service, $purpose);
20 $renderer = self::getRendererInstance($map[
'selected']);
21 $renderer->prepareGenerationRequest(
$service, $purpose);
◆ removePrintMediaDefinitionsFromStyleFile()
static ilPDFGeneratorUtils::removePrintMediaDefinitionsFromStyleFile |
( |
|
$path | ) |
|
|
static |
- Parameters
-
Definition at line 39 of file class.ilPDFGeneratorUtils.php.
References $filename.
41 foreach (glob($path .
'*.css') as
$filename) {
42 $content = file_get_contents($filename);
43 $content = preg_replace(
'/@media[\s]* print/',
'@media nothing', $content);
44 file_put_contents($filename, $content);
◆ removeRendererConfig()
static ilPDFGeneratorUtils::removeRendererConfig |
( |
|
$service, |
|
|
|
$purpose, |
|
|
|
$renderer |
|
) |
| |
|
static |
◆ removeWrongPathFromStyleFiles()
static ilPDFGeneratorUtils::removeWrongPathFromStyleFiles |
( |
|
$path | ) |
|
|
static |
- Parameters
-
Definition at line 51 of file class.ilPDFGeneratorUtils.php.
References $filename.
53 foreach (glob($path .
'*.css') as
$filename) {
54 $content = file_get_contents($filename);
55 $content = preg_replace(
'/src:\surl\([\',\"](..\/)*(\S)/',
"src: url(./$2", $content);
56 file_put_contents($filename, $content);
◆ setCheckedIfTrue()
◆ updateRendererSelection()
static ilPDFGeneratorUtils::updateRendererSelection |
( |
|
$service, |
|
|
|
$purpose, |
|
|
|
$renderer |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: