https://github.com/hugopl/invoicegenerator
Stupid script to create pdf invoices.
https://github.com/hugopl/invoicegenerator
Last synced: 11 days ago
JSON representation
Stupid script to create pdf invoices.
- Host: GitHub
- URL: https://github.com/hugopl/invoicegenerator
- Owner: hugopl
- License: mit
- Created: 2015-01-21T02:54:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T17:36:49.000Z (over 3 years ago)
- Last Synced: 2025-04-01T04:08:08.315Z (about 1 month ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Stupid invoice generator
Put the data you usualy uses to create your invoices into a YML file, run this
gem and done, you have a nice pdf invoiceTo see an example the fast possible way run:
```
$ gem install invoicegenerator
$ invoicegenerator --show-yml-example | invoicegenerator --stdin
```To have a starting point to write your YAML describing your invoice, type:
```
$ invoicegenerator --show-yml-example > invoice.yml
```Then change the generated invoice.yml
## How to change the invoice template?
Use the --template command line switch to specify an HTML template, to have a look in a example, type:
```
$ invoicegenerator --show-template-example
```## What to write in the YAML file?
Run `invoicegenerator.rb --show-yml-example` and you will see an example, basically you can use all keys you find as a command line option.
## I got an error while running the example!
```
Generating invoice-2019-123.pdf...
No such file or directory @ rb_file_s_size - invoice-2019-123.pdf
```This is a [PDFKit issue](https://github.com/pdfkit/pdfkit/issues/380#issuecomment-421269690), install libXrender package on your distro and the issue should be fixed.