How to get the generated pdf

0
I tried to generate pdf using screen shot component, but it generated pdf using the browser, did not store the generated pdf in the mendix entity, so I can not manipulate the pdf, for example, to display the generated pdf in the file document viewer component; I've also tried using a document template to generate PDFS, which allows me to store the generated PDFS in a mendix entity and display them in a pdf presentation component, but I don't seem to see the list component in the template when I want to display the list. Ask the gods, is there any other way to generate pdf, and can be displayed in the pdf display component, pdf also supports the display list. The following diagram shows the supported components in the document template. Displaying lists is not supported.
asked
2 answers
0

Did you look at the new PDF Document Generation from Mendix? This works easier then the old document template logic as you can actually create a Mendix page and turn it into a PDF. So you will have list views available.

 

Note that the PDF Document Generation for now only is supported locally and in Mendix Cloud.

answered
0

Hello Hu,

 

The Document Template is the traditional way of generating PDFs on Mendix. It has some limitations, as you have noticed. See this video from MendixWithMe

https://www.youtube.com/watch?v=f6N7bzXbvMk

and this from Master Mendix

https://www.youtube.com/watch?v=IsGE5Nv46JM

 

There's a new way of doing PDF Generator using the DocumentGeneration Module. The PDF generation using this module is server side. See this video from MendixWithMe

https://www.youtube.com/watch?v=WwZr3qov7p4

and Medium article

https://medium.com/mendix/pdf-document-generation-in-mendix-a95e67d41503

 

In addition, there's a way to generate the PDF client side, using JavaScript and Nanoflows. See this video:

https://www.youtube.com/watch?v=avnffkEHnfQ

 

answered