• Robby S
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi everyone,

 

I have a requirement for a custom Visualforce page to be downloaded and saved as a PDF when a user clicks a button on the page.

 

I'm aware of the renderAs apex:page attribute and how you can control rendering the page as a PDF by adding a parameter to the url - however, when we try this option, the PDF generated via this route is not very attractive and doesn't display the formatting on the page (in fact, it actually displays fragments of the HTML code).

 

We would also like to avoid one of the "link to PDF" options - where you send a link to a 3rd party website and the PDF is generated and returned.

 

Has anyone implemented similar requirements? Does anyone know of any options that could deliver what we're needing?

 

Thanks in advance for the help.

 

Robby

Hi everyone,

 

I have a requirement for a custom Visualforce page to be downloaded and saved as a PDF when a user clicks a button on the page.

 

I'm aware of the renderAs apex:page attribute and how you can control rendering the page as a PDF by adding a parameter to the url - however, when we try this option, the PDF generated via this route is not very attractive and doesn't display the formatting on the page (in fact, it actually displays fragments of the HTML code).

 

We would also like to avoid one of the "link to PDF" options - where you send a link to a 3rd party website and the PDF is generated and returned.

 

Has anyone implemented similar requirements? Does anyone know of any options that could deliver what we're needing?

 

Thanks in advance for the help.

 

Robby