You need to sign in to do that
Don't have an account?
Sindhu Ambarkar
How to download pdf page automatically using render as pdf
Hi,
I want to download the pdf automatically using render as pdf i tried using contenttype attribute.Its throwing error
Thanks & Regards,
Sindhu Ambarkar.
I want to download the pdf automatically using render as pdf i tried using contenttype attribute.Its throwing error
Thanks & Regards,
Sindhu Ambarkar.
renderAs="pdf" authomatically download your pdf. If you are using Google chorme browser, it will open pdf. But if using Firefox browser, hitting URL will automatically download page.
Thanks
If i want to download in chrome browser then what needs to be done.
Thanks & regards,
Sindhu Ambarkar.
Thanks.
I have used
<body style="border:1px solid black; bgcolor:green; font-family: Italic; font-size: 20px;">
Testpage
</body>
But background color is getting reflected.
Thanks & regards,
Sindhu Ambarkar.
1) RenderPDF.vfp
2) ExportToPDF.vfp
One page renders the PDF, the other one includes and downloads.
Visualforce page:
Visualforce controller: