+ Start a Discussion

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

Try the below link.

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