Invoice
Generate pdf invoices from latex!
Example
invoice = ;;
Description
Invoice uses pdflatex
to generate pdfs from latex, so make sure you've pdflatex
installed.
The invoice
function has the following prototype:
invoice(options, cb)
Mandatory options
are:
template
- path to latex templatefrom
- from fieldto
- to fieldperiod
- time periodamount
- cash amount
Callback is function (err, pdf)
, where pdf
is path to the generated document. If an error occurs, err
is set.
Installation
Using npm:
npm install invoice