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
fredkafredka 

Create/Save/Email pdf from Lightning Web Component

I have been working on this for a while and keep hitting walls.  I would like to create/save/email a list on a lighting web component as a PDF.  I started by trying to use my VF page that renders as PDF but could not pass the data.  I'm told that it will not work.  I moved on to jspdf but found that I could not customize the table as much as I wanted.   The last think I tried was to use jspdf-autotable.  However, I keep getting an error " [t.autoTable is not a function] "   Does anyone have any insight or maybe even an example they could share?  thanks!!
VinayVinay (Salesforce Developers) 
Hi Fredka,

Check below examples.

https://developer.salesforce.com/blogs/2019/07/display-pdf-files-with-lightning-web-components.html
https://developer.salesforce.com/forums/?id=9060G0000005WmhQAE

Thanks,
fredkafredka
Thanks for responding but these links really don't apply to what I am trying to do.  The first link is about displaying already created PDF's.  The second example is using Aura and not LWC's.  Thanks again for the input!