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
Ravindar AdminRavindar Admin 

How to save the records as pdf?

In My Visualforce page, I have some picklist fields, Records   only display When i select the picklist fields in page . So, How to save that records as pdf or excel?
Ashish DevAshish Dev
As you might know you can display vf page as pdf.
so you need to build logic in javascript where if you select perticular value in piclist, redirect browser to vf page which display record as PDF.
v varaprasadv varaprasad
Please check once below using Contenttype we can chieve.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm


Thanks
Varaprasad
Ravindar AdminRavindar Admin
@Ashish Dev :

Can you provide example, so that it will be very glad.