How to download a pdf file generated from a plot?

Hello Sarvesh04!
I know it is late since your post. Thanks for the code. I tried to integrate it in my app, it is not working. I don’t know what is happening, there is no error message but i could not find the pdf file. Do you have an idea where the file must be save?

hello guys,
I want to generate a pdf. write a graph and its data table how can I make it?