This is a small project in Node.js which creates invoices from an HTML template using PSPDFKit Processor.
See the accompanying blog post at https://pspdfkit.com/blog/2021/how-to-generate-pdf-from-html-with-nodejs.
Written with Node.js 14.7.0. To use it, clone the repository and run:
npm installThen start the Processor. If you have a license key, run:
docker run --rm -p 5000:5000 -e LICENSE_KEY=YOUR_LICENSE_KEY_GOES_HERE pspdfkit/processorAnd if you don't, you can start the Processor in trial mode with:
docker run --rm -p 5000:5000 pspdfkit/processorAfter that, you can create the invoice by running node generate.js - the resulting PDF file will be saved at ./invoice.pdf.
- Inter font family by The Inter Project Authors.