N
Nuxt4mo ago
Merite

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
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).
Merite
MeriteOP3w ago
I tried an integration with html2pdf but it's more an image than anything else
mohammad seliya
You should use jsPDF
Anthony CVP
Anthony CVP3w ago
@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.
mohammad seliya
can you please describe more specific so i can help you
Merite
MeriteOP2w ago
@mohammad seliya with jspdf can we make pdf with tailwind
mohammad seliya
@Merite As far as i know we can't
Merite
MeriteOP2w ago
do you know a way to make pdf but with tailwind for style?
mohammad seliya
@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...
Want results from more Discord servers?
Add your server