N
Nuxt4mo ago
mdthansil

Is there any easy way to generate PDF from html in Nuxt.js?

Please help.
5 Replies
less
less4mo ago
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
Daniel Hill
Daniel Hill4mo ago
No description
Jacek
Jacek4mo ago
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?
Daniel Hill
Daniel Hill4mo ago
I use preline in my nuxt websites. Feel free to take a look on my profile. https://github.com/dhillweb
Anthony CVP
Anthony CVP3w ago
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).
Want results from more Discord servers?
Add your server