Warning: You are browsing the documentation from version 4 to 10 of Pimcore. Please visit https://pimcore.com/docs/platform/ for the latest versions of Pimcore.
Version: Edit on GitHub

PDF Editable

This editable requires Ghostscript installed on your server. See System Requirements


The PDF editable allows you to embed asset documents (pdf, doc, xls, ...) into documents.


Name Type Description
thumbnail string/array Thumbnail config (name or array) for the preview image
uploadPath string Target path for (inline) uploaded images


Name Return Description
getData() array Returns all stored data for this editable
isEmpty() boolean Whether the editable is empty or not
getElement() Asset Returns the assigned Asset Document


Basic usage

<div class="pdf">
    {{ pimcore_pdf("myPdf", {"width": 640}) }}        

This looks like the following in editmode:

PDF editable - the empty area

A user can now drag documents there from the Assets tree:

PDF editable - drag a document