There are two ways. Either design pages for printing with document templates. See the documentation here: https://docs.mendix.com/refguide/document-templates/
Or use a marketplace component Print screen to PDF: https://marketplace.mendix.com/link/component/27069
It al depens on what you want to print. Document templates gives you more control on what should be on the page.