1

I need to generate PDF documents from some data and I also need some templating functionality. I have expirience with npm package pdfkit, but this package not support templates.

It would be nice if I will be able to make HTML or XML templates.

Any recommendations? (Not deprecated)?

0

This project is a great match for what you want to do.

https://github.com/PDFTron/web-to-pdf

Blog describing the project: https://www.pdftron.com/blog/react/react-to-pdf/

Disclaimer this is from my company, but the web-to-pdf project is GNU AFFERO GENERAL PUBLIC LICENSE and allows commercial use.

  • It is using puppeteer, and I do not want to convert Recat components. But thanks :) I can use puppeteer alone then. – Baterka Oct 19 at 10:15
  • React was just used for the blog post. The github project has no mention/reference to React. Yes, you can use Puppeteer alone. – Ryan Oct 21 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.