ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Preview renderer class that is able to create previews from PDF, PS and EPS by using GhostScript. More...
Public Member Functions | |
getSupportedFileFormats () | |
Gets an array containing the file formats that are supported by the renderer. More... | |
Public Member Functions inherited from ilFilePreviewRenderer | |
getSupportedRepositoryTypes () | |
Gets an array containing the repository types (e.g. More... | |
supports ($preview) | |
Determines whether the specified preview object is supported by the renderer. More... | |
prepareFileForExec ($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... | |
Public Member Functions inherited from ilPreviewRenderer | |
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 ($preview) | |
Determines whether the specified preview object is supported by the renderer. More... | |
render ($preview, $obj, $async) | |
Creates the preview of the specified preview object. More... | |
Static Public Member Functions | |
static | isGhostscriptInstalled () |
Determines whether Ghostscript is installed. More... | |
Data Fields | |
const | SUPPORTED_FORMATS = "eps,pdf,pdfa,ps" |
Protected Member Functions | |
renderImages ($obj) | |
Renders the specified object into images. More... | |
Protected Member Functions inherited from ilPreviewRenderer | |
renderImages ($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... | |
Static Private Attributes | |
static | $supported_formats = null |
Preview renderer class that is able to create previews from PDF, PS and EPS by using GhostScript.
Definition at line 14 of file class.ilGhostscriptRenderer.php.
ilGhostscriptRenderer::getSupportedFileFormats | ( | ) |
Gets an array containing the file formats that are supported by the renderer.
Definition at line 27 of file class.ilGhostscriptRenderer.php.
|
static |
Determines whether Ghostscript is installed.
Definition at line 40 of file class.ilGhostscriptRenderer.php.
Referenced by ilObjFileAccessSettingsGUI\editPreviewSettings(), and ilRendererFactory\loadAvailableRenderers().
|
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 52 of file class.ilGhostscriptRenderer.php.
References $i, Sabre\VObject\$output, $outputFile, ilUtil\escapeShellArg(), ilUtil\execQuoted(), ilPreviewRenderer\getMaximumNumberOfPreviews(), ilUtil\ilTempnam(), and ilFilePreviewRenderer\prepareFileForExec().
|
staticprivate |
Definition at line 20 of file class.ilGhostscriptRenderer.php.
const ilGhostscriptRenderer::SUPPORTED_FORMATS = "eps,pdf,pdfa,ps" |
Definition at line 17 of file class.ilGhostscriptRenderer.php.