Add PDF to entity and view it

0
Hi there,   I'm fairly new to using Mendix and building a small application for my sports club. I have a (hopefully) quick question about how to integrate PDF's in my applicaiton:   How do I add a PDF to an entity and then allow users to look at said pdf? So I have a "wedstrijd" (competition) entity on which users can register, but I want to add the PDF with the information for that specific competition to the competition overview by the click of a button: So the users looks at all upcoming competitions, clicks on this button to get the information and this opens the PDF (or maybe a new page, that then shows the PDF?).  What's the best course of action to build this or where can I find information on building this? Any help is greatly appreciated!  
asked
3 answers
1

You can use the Generate Document action in a microflow to generate a PDF document to download. This can be attached to the button on your page.

 

https://docs.mendix.com/refguide/generate-document/

 

This tutorial will give you a worked example how to generate generate a document in the microflow.

 

https://docs.mendix.com/refguide/creating-your-own-documents/

 

Good luck!

 

 

 

answered
1

You can use generate document activity in MF to get the PDF. Below the explanation how can you implement in your project.

 

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

 

answered
1

Hi Jeroen

Watch this video

 

https://youtu.be/f6N7bzXbvMk?si=cKOJoq0MC6Sruk53

answered