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
Rene EnglertRene Englert 

Creating PDF from a custom object

I have created a custom object called Program Agreements.  I would like to be able to generate a PDF contract from this object.  Is that possible?
Raj VakatiRaj Vakati
Yes .. Use Visauforce code to do it. 
You can render any page as a PDF by adding the renderAs attribute to the <apex:page> component, and specifying “pdf” as the rendering service. For example:


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