Put the data you usualy uses to create your invoices into a YML file, run this gem and done, you have a nice pdf invoice
To 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
Use the --template command line switch to specify an HTML template, to have a look in a example, type:
$ invoicegenerator --show-template-example
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.
Generating invoice-2019-123.pdf...
No such file or directory @ rb_file_s_size - invoice-2019-123.pdf
This is a PDFKit issue, install libXrender package on your distro and the issue should be fixed.