File size: 1,175 Bytes
1108a3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# PDFKit Invoices
<center>
<a href="https://pspdfkit.com/web">
<img src="./screenshot.png" alt="Screenshot of an invoice PDF in the PSPDFKit for Web reader." width="1009">
</a>
</center>
## Prerequisites
- [Node.js](http://nodejs.org/) (with npm or Yarn)
## Getting Started
This repository is an example of how to make PDF invoices with PDFKit.
There are two important fields in this this repository:
- [`index.js`](index.js) is the main entry point. It defines the data structure used to create the invoices.
- [`createInvoice.js`](createInvoice.js) exports a function that can be used to create invoice PDFs.
To get started, use the following commands:
```bash
git clone https://github.com/PSPDFKit-labs/pdfkit-invoice.git
npm install # Install dependencies
npm start # This will create an invoice.pdf file in the root of the project.
```
To learn more about this project, make sure to read the accompanying [blog post](https://pspdfkit.com/blog/2019/generate-invoices-pdfkit-node)
## Contributing
Please ensure
[you have signed our CLA](https://pspdfkit.com/guides/web/current/miscellaneous/contributing/) so that we can
accept your contributions.
|