Sharing Option Problem

Im developing an assistence app and so I want an option to share all the data from the text boxs so that it converts into a PDF file or something like that. So, basically what i'm saying is that I want that the text that it's in each one of the text boxs converts into a file when I press the "Share" button so that I can share it to Gmail, WhatsApp, etc.

Somebody knows how to do these? It is possible?
I will appreciate so much if somebody could help me, thanks!