You need to sign in to do that
Don't have an account?
SHaron To
Render page in Salesforce1 as PDF after button click
Hello Everyone,
Within Salesforce1, I'm creating a checklist of items for the user to complete. I would like to provide an option for them to save their checklist as a pdf and email it to themselves but I'm having trouble figuring out how to convert the page to a pdf first. Is it possible to add this type of functionality to a Salesforce1 .app using Lightning?
Within Salesforce1, I'm creating a checklist of items for the user to complete. I would like to provide an option for them to save their checklist as a pdf and email it to themselves but I'm having trouble figuring out how to convert the page to a pdf first. Is it possible to add this type of functionality to a Salesforce1 .app using Lightning?
Please find the below explanation matching your requirement criteria.
Visual Force Page: The above code displays the below
Apex Controller:
- Account Page Layout:Create a custom button, “Download PDF” and add it to the page layout.
- Setting Up a Custom Button:The Javascript code is written as follows
- top.location.href='[PDFURL]';
Execution Results:By clicking the button, you can display the “Download a PDF file” dialog without switching screens.
This time we mainly focused on a custom button, but of course this method can be applied to a custom link as well.
Please try and take advantages of the useful feature.
For more information refer to the below link:
http://salesforce.stackexchange.com/questions/31768/rendering-a-vf-page-as-pdf-and-saving-it-as-an-attachement
Kindly mark this as the best answer if it helps you.
Best Regards,
Nagendra.P
All Answers
You have to create custom solution using visualforce and apex controller and using rerenderas then you can convert your page to pdf in Salesforce.
And also you can add method in your apex controller to send that pdf to an email to users.
Thanks
Scott Haleo
Hytechpro
Please find the below explanation matching your requirement criteria.
Visual Force Page: The above code displays the below
Apex Controller:
- Account Page Layout:Create a custom button, “Download PDF” and add it to the page layout.
- Setting Up a Custom Button:The Javascript code is written as follows
- top.location.href='[PDFURL]';
Execution Results:By clicking the button, you can display the “Download a PDF file” dialog without switching screens.
This time we mainly focused on a custom button, but of course this method can be applied to a custom link as well.
Please try and take advantages of the useful feature.
For more information refer to the below link:
http://salesforce.stackexchange.com/questions/31768/rendering-a-vf-page-as-pdf-and-saving-it-as-an-attachement
Kindly mark this as the best answer if it helps you.
Best Regards,
Nagendra.P