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

General

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

Configuration

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

Methods

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

Examples

Basic usage

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

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