Issue
When attempting to generate a document using the PDF Document Generation module, the following error is thrown that prevents the document creation process:
DOCGEN_RUNTIME_ERROR: Failed to send result back: Request body larger than maxBodyLength limit.Environment
Cause
The PDF Document Generation module has the following limitation, and it's not possible to increase the maxBodyLegnth value.
- The maximum file size is 25 MB per document. If the document exceeds this limit, the action will result in an exception.
Solution/Workaround
- If the document exceeds this limit(25 MB per document), it is recommended to compress high-resolution images to reduce the file size.
- An alternative is to generate the PDF in separate parts (separate PDFs) and then combine the PDFs using the PDF merge actions from the Community Commons module.
Internal information related
221379
Additional information
Mendix documentation: PDF Document Generation module limitations
0 Comments