function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

prevent redirect to PDF VF page

When I set a VF page to render as PDF (renderAs="pdf"), a redirect happens and I lose all controller state. This is preventing me generating a PDF as part of a wizard that collects data in a previous page.


If I remove the renderAs param from the page, the state is maintained and no redirect occurs. Even if I set the setRedirect attribute to false when forwarding to the PDF page, it redirects.


Is there a way to go to PDF VF page without the automatic redirect? The wizard is such that I can't just pass simple parameters from the previous page.