|
In this case, I learned we can import open source libraries into Salesforce for things like PDF generation.
Specifically, there is a library called jsPDF-AutoTable to make simple documents, like invoices and tables.
I asked ChatGPT how to get it working inside Salesforce and the LLM had me download the source code to get started (at the bottom of this Github page if you're interested).
I opened the download folder and found the "dist" folder in the directory.
Then I opened the dist folder, found the jspdf.plugin.autotable.min.js file, and uploaded it into Salesforce as a static resource.
(Screenshots below in case you want to do this yourself).
|