4 require_once(
"./Services/Preview/classes/class.ilPreview.php");
29 self::loadAvailableRenderers();
30 return self::$renderers;
64 if (self::$renderers != null)
70 global $ilPluginAdmin;
71 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"Preview",
"pvre");
72 foreach ($pl_names as $pl)
75 $r[] = $plugin->getRendererClassInstance();
79 include_once(
"./Services/Preview/classes/class.ilImageMagickRenderer.php");
82 include_once(
"./Services/Preview/classes/class.ilGhostscriptRenderer.php");
86 self::$renderers =
$r;
Preview renderer class that is able to create previews from images by using ImageMagick.
Factory that provides access to all available preview renderers.
static getRenderers()
Gets an array containing all available preview renderers.
static isGhostscriptInstalled()
Determines whether Ghostscript is installed.
static getRenderer($preview)
Gets the renderer that is able to create a preview for the specified preview object.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
Create styles array
The data for the language used.
static loadAvailableRenderers()
Loads the available preview renderers.
Preview renderer class that is able to create previews from PDF, PS and EPS by using GhostScript...