bohdanloe
(Bohdan Loe)
June 19, 2023, 11:24pm
1
Is there any possible way to generate a pdf file with data from Prismic? For example: for blog posts page I use SliceZone, and I need to generate pdf files of this pages
Hello @bohdanloe ,
Welcome to Prismic community, and thanks for reaching out to us!
There's a similar answer on the forum that could be helpful.
Hi @kevin.reevers ,
Of course, you can upload a PDF to the Prismic media library, or as an asset in your project. However, it sounds like maybe you want to programmatically generate a PDF with data from Prismic? If that's the case, I haven't personally seen any examples of anyone doing that. I'm sure it's possible, though I can't say exactly how. Maybe you can make it work with a package like PDFMake or PDFKit .
I hope that helps! Let me know how it goes
Sam
Let me know if it helps
Thanks,
Racheal.