You need to sign in to do that
Don't have an account?
Leticia Monteiro Freitas 4
Download a pdf from a lightning component
Hello, I'm rendering a base64 file to pdf in a lightning component. Using the model of kummark22 (https://github.com/kumarrk21/PDFViewer)
But in this way I cant download. Can anyone help me?
But in this way I cant download. Can anyone help me?
i just tried this and was able to create the attachment successfully: -
I created one vf page that renders a PDF: I am just showing opportunity name in PDF. Here is the controller for vf page -
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com