Create Pdf with nuxt
I am trying to generate PDFs with nuxt. I have tried to implement the different modules nuxtPdfMake, sideabse NuxtPdf but none really satisfy me and also I would like to have the possibility of using tailwind. Has anyone ever encountered this?
9 Replies
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).
I tried an integration with html2pdf but it's more an image than anything else
You should use jsPDF
@mohammad seliya jsPDF gets me there, thanks for the suggestion. I just am struggling with some placement/sizing of components that I do not know how to fix.
can you please describe more specific so i can help you
@mohammad seliya with jspdf can we make pdf with tailwind
@Merite As far as i know we can't
do you know a way to make pdf but with tailwind for style?
@Merite Not sure about Nuxt but with react you can do with react-print-pdf
checkout this blog - https://dev.to/fileforge/create-pdfs-with-tailwind-k0
DEV Community
Create PDFs with Tailwind
As a developer, creating PDFs seems like a simple task. We build frontends with modern toolkit in...