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!
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