+ Start a Discussion
kannapapikannapapi 

How to render the page as pdf from different page?

For example, i am having Page A & B....Page A having export button...if i click this button it has to render Page B as pdf but it should not go to page B and has to stay with Page A. How to do this?
Best Answer chosen by kannapapi
Anoop yadavAnoop yadav
Hi,

Try the below link.
http://gaganbansalblog4u.com/2012/11/01/download-visualforce-page-data/

Use renderAs = pdf  instead of "ContentType" to download as pdf.