Hi,
You can create a document template and design it accordingly. As you need to display the list of information use data grid or template grid. And pass the respected columns : for headers use Static label and for the data use Dynamic label. (Take grid => Add table => Use static & Dynamic labels)
And then in your main microflow add Generate Document java action and do the following :
1. Pass your file object on the Generate Document java action
2. Also choose the file type as PDF and then map the created document template
You can refer https://docs.mendix.com/refguide/generate-document/
And
https://docs.mendix.com/refguide7/how-to-create-your-own-documents/