The platform offers the option to create pdf’s, see https://docs.mendix.com/refguide/document-templates
If the question is can I create a pdf for the data the user filtered in a Datagrid by means of the search functions, this is possible as well but you’ll need to recreate the search function so that this data can be used in your pdf template.
Another option could be this module form the Appstore: https://appstore.home.mendix.com/link/app/114043/Mansystems/Templator---Document-(PDF)-and-report-generation-alternative
Hope it helps!
As you mentioned saved attributes, you have used an entity to achieve it right
Kindly use the below documentation for creating a document template with this entity as Rishabh mentioned.
If this not works for you , can you please share any screenshot regarding your question