I've been working on a custom widget for a few weeks now and it has go !tten to the point in which i need to add "print to PDF" functionality. The widget in question generates a report in a modal found within the widget's own HTML file.I looke online for solutions and i found this: jsPDF. It allows me to save a <div> element of the modal as a PDF to be saved and potentially printed in A4 paper. Problem is: I don't know what to do in order to import into the widget. Here's what i've tried:
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.