PDF Editable
This editable requires Ghostscript installed on your server, which renders the preview image of the embedded document. Non-PDF assets (doc, xls, ...) additionally require LibreOffice or Gotenberg to be converted to PDF first. See System Requirements and Optional System Dependencies.
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:
A user can now drag documents there from the Assets tree:
