Hi Hrishikesh,
You need to add a document template in my first module and later follow these steps from the link below: https://docs.mendix.com/refguide/generate-document/