PDF Documents
Overview
The PDF Documents group sets size limits for the PDFs that WebForms creates from submissions. The limits keep a single document from growing too large. Raise a limit only when a document you need fails with a message that names it.
Go to Stores → Configuration → MageMe Extensions → WebForms and expand PDF Documents. All settings here are Global: one value for all websites and store views.
Settings
| Setting | Scope | Default | Description |
|---|---|---|---|
| Max Slot Text (bytes) | Global | 204800 | Default 204800, ceiling 1048576. |
| Max Elements per Slot | Global | 5000 | Default 5000, ceiling 20000. |
| Max Images per Slot | Global | 20 | Default 20, ceiling 100. |
| Max Table Rows per Slot | Global | 500 | Default 500, ceiling 2000. |
| Max Pages per Document | Global | 50 | Default 50, ceiling 200. |
| Max Document Size (bytes) | Global | 10485760 | Default 10485760, ceiling 52428800. |
Notes
What a slot is. A slot is one editable content area of a PDF document. With Layout set to Standard, the slots are Text Before Answers, Text After Answers and Footer Note. With HTML, they are Document and Page Footer. See PDF documents.
What is checked. When WebForms creates a PDF, the four slot limits apply twice. First each slot is checked against Max Slot Text (bytes), Max Elements per Slot, Max Images per Slot and Max Table Rows per Slot. Then the whole document, the answers included, is checked against the same four limits. Max Pages per Document and Max Document Size (bytes) apply to the finished file. An element is one piece of the layout, such as a paragraph, a line break, an image or a table cell.
When a limit is broken. WebForms doesn't create the PDF. The error message names the limit, for example "The document would be 60 pages; the limit is 50."
Values. Sizes are in bytes. For Max Slot Text (bytes), the default 204800 is 200 KB and the ceiling 1048576 is 1 MB. For Max Document Size (bytes), the default 10485760 is 10 MB and the ceiling 52428800 is 50 MB. An empty value or 0 uses the default. A value above the ceiling in the description counts as the ceiling.