I am trying to use a blank pdf template to make a form where user can fill out inputs, check boxes, and then download a pdf of their answers. Is there a way for users to type their information directly onto the pdf document and then download it on a reactive application?
Here it is.
It's just a example so it's missing like user permissions, if you need to just let one user do the print, it's best to use a token system and right now all the data is being passed in the parameters and anyone can see it. The token system would hide that if needed. You also can send all the data in a json format. There's a lot of improvement you could do. But for now it print's the data.
Hi
Yes but not the way you think. The best way to do this is to create a screen that only has the pdf you want to download.
And use a 2 screen identical for the user to edit and when you want to download the pdf just use the function that the component has and pass the 1 screen URL with all the user data passing using parameters.
I hope this will help
Hi,
Do you mind detailing more on which function is used to pass the URL with all the user data using parameters, or point me to a video if there is one? This is my first time using Outsystems. I tried to redirect the user to the same screen after they had filled out the information, but it didn't store any of the information the user provided.
Thank you!
I don't know if there is a video but i can try and send you the .oap file with a example. The function to get the pdf is PrintToPDF_Advanced this is in the component.
Are you saving the data the user first in the database or you just want to create the pdf and download rght away ?
I appreciate the .oap file with an example. The PrintToPrint_Advanced component only works in the traditional application right? It doesn't show for me in the reactive app. I would like to be able to create the pdf and download right away.
Hi @Nimeshika Devarakonda
Did the example work, did it solve your problem? Do you need more help?
Hi Carlos
The example works and I think I can figure it out from that. Thank you so much for your help!