PDF Document Rendering

0
Hi,In the development of our application, we have a PDF download feature. For its implementation, in addition to the Mendix PDF Document Generation module, we have used the Document Layout Widget module (which adds headers and footers to PDF documents) and the Table of Contents module (which adds indexes). Locally, the documents are generated correctly, but online we have detected that the footers overlap some of the content in the PDF documents we generate. In Cloud:Locally:Does anyone know why this is happening? How could I fix it?Thanks!
asked
3 answers
1

Unsure why this happens but do you use your normal Chrome installation or Chromium?

The cloud service uses Chromium, your local Chrome probably uses a different version of the engine as it usually is auto updated.


Install the Chromium version recommended in the documentation and then check whether you have differences between local and cloud


When I create PDF designs, I put a button only accessible to admins to directly call the microflow passed to the generation function. This opens the page in your browser, allowing to inspect the contents. Note that it will not paginate like a PDF of course.


https://docs.mendix.com/appstore/modules/document-generation/installation-configuration/

answered
0

Hi Marcel,


Thank you for your reply.


We try it locally using Chromium browser, and the PDF also fails.


Our PDFs has several tables and if they are long and takes up multiple pages, it seems that it doesn't reserve enough space for the footer. Do you have any suggestions for how to ensure that the content and footer respect their respective spaces?


It's curious that it does reserve space for the header.


Thansk,


answered
0

Did you set the header/footer height on the document layout widget? It cannot determine that from the content as that is too late so these are numeric properties to be set at design time

answered