You need to sign in to do that
Don't have an account?
Adriana Smith 9
Create PDF Document from Custom Object
I've created a custom object called Invoices, related to Opportunities. I've added a ton of custom fields, autonumber fields, etc. What I need is to have a button that says 'create pdf' like how quotes work. I would also LOVE to have templates so I can play with the pdf. Pretty much, I need this new invoices custom object to act just like how quotes work....
So I don't know where to start....
So I don't know where to start....
You can build a VF page to achieve this.
You can pretty much throw in any HTML content to it (Logos, images, colors, etc.,) and render the final output as PDF.
You can add a button to your Page Layout to execute this VF page on click of this button.
Let me know if you need any more information.
It will look like this (below) in your VF page. Please refer the reference links below for more information on this.
https://help.salesforce.com/articleView?id=000004706&type=1
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_renderas_pdf.htm
Let me know if this helps.
You just need to add the output fields to populate the VF page with all the info and render it as PDF.
Here are some sample references.
https://developer.salesforce.com/forums/?id=906F000000097liIAA
https://www.interactiveties.com/blog/2015/render-visualforce-pdf.php