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
Niki Shah 12Niki Shah 12 

How to create Save to And Email button on pdf

I make pdf page in visual force  for  custom object and iHow to create save to and sand button on this pdf can you please help me
Ajay K DubediAjay K Dubedi
Hi Niki,
To meet your objective you need to do following:
1. You need to create a controller class linked to your visualforce pdf page.
2. In controller class you'll have to make Email attachment and a reference to send button.
3. As far as saving is considered you just need to open url of the vf page in a new tab as its extention itself contains .pdf when rendered as pdf.

Follow the link for more detailed explanation:

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

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi