Activity › Forums › Salesforce® Discussions › Is it possible to generate pdf in Salesforce lightning?
Tagged: Apex Page, Aura Component, Download as PDF, Lightning Button, PDF, Salesforce Apex Code, Salesforce Lightning, Salesforce Visualforce Page
-
Is it possible to generate pdf in Salesforce lightning?
Posted by Shaik on July 31, 2018 at 4:54 AMIs it possible to generate pdf in Salesforce lightning?
If possible, please provide the solution.Rahul kapoor replied 3 years, 6 months ago 5 Members · 4 Replies -
4 Replies
-
Hello Shaik,
I just found a good answer for you, here is link:-
https://gist.github.com/toanshulverma/16244d19ac68364cb75443695d81403b
Hope this will help you.
Thanks.
- [adinserter block='9']
-
Hi Shaik,
Yes, it is possible to generate pdf in Salesforce Lightning.
Follow these steps:
- Create Lightning component to accept an external method and invoke it on button click
- Embed Lightning component within Visualforce Page
- Passing in-memory data within the lightning component to VF Page Controller
- Generating PDF
If you are facing problem to implement this you can refer my blog.
Hope this will help you.
Thanks.
-
In salesforce, PDF can be generated without using any app.
An official document by Salesforce:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm
A quick start guide How to generate PDF in Salesforce Lightning – https://arrify.com/generate-pdf-in-salesforce/
Find apps on appexchange:
https://appexchange.salesforce.com/appxSearchKeywordResults?keywords=pdf%20generator -
Yes you can do it by following this method
It cannot be generated direcly so youneed to use the visualforce page and call its from the lightning expoThere are in general two methods to show a PDF in Lightning Component.First, you can create a Visualforce page and embed it in the Lightning component. Second is, usage of PDF.JS library to directly use lightning component to display the PDF.-
This reply was modified 3 years, 6 months ago by
Rahul kapoor.
-
This reply was modified 3 years, 6 months ago by
Log In to reply.