5 Replies
Maybe you can use PDFjs, or according to sidebase/nuxt-pdf, you can use their composables to generate the PDF from HTML :
https://github.com/sidebase/nuxt-pdf/tree/main/src/runtime/composables
One image replaces thousand words. Even links, I suppose.
https://preline.co/docs/datatables.html#export
Using a different library under the hood. Does not seem reusable outside of the given use case. And overall is hardly related or supported in Vue ecosystem. @Daniel Hill is this a joke? Or do you actually use it in your Nuxt app?
I use preline in my nuxt websites. Feel free to take a look on my profile.
https://github.com/dhillweb
I would really like a solution with easy integration as well, seems the Nuxt modules @sidebase/nuxt-pdf and nuxt-pdfeasy integrations are far behind or missing documentation/examples. I would love to see some insight on any type of Nuxt integration with either those or other options (e.g., jsPDF or html2pdf).