NAME
pdfmake - render document templates to PDF from the command line
SYNOPSIS
pdfmake render invoice.tmpl data.json -o invoice.pdf
pdfmake check invoice.tmpl
pdfmake check invoice.tmpl data.json
pdfmake bench --iterations 500
pdfmake tags --attributes
DESCRIPTION
The whole engine, on a laptop, with no account and no network.
check
Exits non-zero on any error, with the position first, so it can be a step in a template repository's CI:
invoice.tmpl:12:5: unknown tag '<dvi>'
Without a data file it removes the template tags and checks what is left, which catches unknown tags, unclosed elements and bad attributes. With one it runs the whole pipeline, which catches everything.
bench
Prints documents per second per core and the memory a run costs. It is deliberately part of the shipped tool rather than a private script: the performance claim should be checkable by anyone who doubts it, on their hardware.
Reproducible output
--date EPOCH sets SOURCE_DATE_EPOCH, so two renders of the same template and data produce identical bytes.