ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
getSupportedFileFormats () | |
Gets an array containing the file formats that are supported by the renderer. More... | |
![]() | |
getSupportedRepositoryTypes () | |
Gets an array containing the repository types (e.g. More... | |
supports (\ilPreview $preview) | |
Determines whether the specified preview object is supported by the renderer. More... | |
prepareFileForExec (string $filepath) | |
Checks whether the specified file path can be used with exec() commands. More... | |
getSupportedFileFormats () | |
Gets an array containing the file formats that are supported by the renderer. More... | |
![]() | |
getName () | |
Gets the name of the renderer. More... | |
isPlugin () | |
Determines whether the renderer is a plugin or a built in one. More... | |
getSupportedRepositoryTypes () | |
Gets an array containing the repository types (e.g. More... | |
supports (\ilPreview $preview) | |
Determines whether the specified preview object is supported by the renderer. More... | |
render (\ilPreview $preview, \ilObject $obj, bool $async) | |
Creates the preview of the specified preview object. More... | |
Static Public Member Functions | |
static | isGhostscriptInstalled () |
Determines whether Ghostscript is installed. More... | |
Protected Member Functions | |
renderImages (\ilObject $obj) | |
Renders the specified object into images. More... | |
![]() | |
renderImages (\ilObject $obj) | |
Renders the specified object into images. More... | |
getImageSize () | |
Gets the size of the preview images in pixels. More... | |
getImageQuality () | |
Gets the quality (compression) of the preview images (1-100). More... | |
getMaximumNumberOfPreviews () | |
Gets the maximum number of preview pictures per object. More... | |
Private Attributes | |
const | SUPPORTED_FORMATS = "eps,pdf,pdfa,ps" |
Static Private Attributes | |
static array | $supported_formats = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Preview renderer class that is able to create previews from PDF, PS and EPS by using GhostScript.
Definition at line 26 of file class.ilGhostscriptRenderer.php.
ilGhostscriptRenderer::getSupportedFileFormats | ( | ) |
Gets an array containing the file formats that are supported by the renderer.
Definition at line 38 of file class.ilGhostscriptRenderer.php.
|
static |
Determines whether Ghostscript is installed.
Definition at line 51 of file class.ilGhostscriptRenderer.php.
Referenced by ilObjFileAccessSettingsGUI\showPreviewRenderers().
|
protected |
Renders the specified object into images.
The images do not need to be of the preview image size.
ilObjFile | $obj | The object to create images from. |
Definition at line 63 of file class.ilGhostscriptRenderer.php.
References $i, ilShellUtil\escapeShellArg(), ilShellUtil\execQuoted(), ilPreviewRenderer\getMaximumNumberOfPreviews(), ilFileUtils\ilTempnam(), and ilFilePreviewRenderer\prepareFileForExec().
|
staticprivate |
Definition at line 31 of file class.ilGhostscriptRenderer.php.
|
private |
Definition at line 28 of file class.ilGhostscriptRenderer.php.