The PDF Plugin can be used to generate files with a fixed layout but dynamic values.
It is structured in such a way that you can create a new template for the PDF plugin on the left. Use the plus icon on the left. In the middle you see the content, which you can create according to your needs in HTML, CSS and JSON. On the right you will see a preview of your template.
The sub-articles describe how to use it.
Limitations
Please be aware of our recommended file size restrictions. These depend on the memory assigned to the plugin.
Heap Space 0,5 GB (default setup)
Creating new files based on a template: file size up to 15 MB
Merging files: file to be merged: up to 7 MB. Resulting file size up to 20 MB
Heap Space 2 GB
Creating new files based on a template: file size up to 15 MB
Merging files: file to be merged: up to 7 MB. Resulting file size up to 100 MB
Security
Starting with Simplifier 8 EHP 3 adding Javascript to generated PDfs is deactivated by default to avoid risk of Server Side XSS (PDF Injection) und Server Side Request Forgery (SSRF).
If required, you can activate allowance of Javascript be setting environment variable ‘PDFPLUGIN_SECURITY_ALLOW_JAVASCRIPT’ to true. (Read more on setting environmental variables)
Permissions
You can set the following permission characteristics when ‘Plugin PDF Generation’ permission object is added to your Roles:
Permission Characteristic | Description |
---|---|
Generate PDF | The user has permission to generate a PDF |
Manage Templates | The user can create, edit and delete templates |
View | The user can list and view templates. If enhanced template security is deactivated in Settings, every user can list and view templates |
Edit | The user can create PDF with content via API (createPdfWithContent and createPdfWithContentHttp) |
Manage Permissions | The user is granted to download and upload a permission file via API. Usage is not recommended. |
Administrate | Deprecated. Not relevant anymore |