Order form
Interactive form fields (type: "field"): text inputs, a dropdown filled from data (optionsFrom), a radio group,
a required checkbox, a multi-line text field, an initials field in the footer (one field, a widget on every page)
and a signature field.
liuska render -t examples/order-form/template.json -d examples/order-form/data.json -o order.pdf
# signed into the "approver" field (key + certificate are never part of the template)
liuska render -t examples/order-form/template.json -d examples/order-form/data.json -o order-signed.pdf \
--sign-p12 signer.p12 --sign-password env:P12_PASSWORD --sign-reason "Order approved" --sign-location Helsinki
# encrypted: opens with a password, printing and form filling allowed
liuska render -t examples/order-form/template.json -d examples/order-form/data.json -o order-locked.pdf \
--user-password env:PDF_PASSWORD --permissions print,fill-forms
A throwaway certificate for trying it out:
openssl req -x509 -newkey rsa:3072 -nodes -keyout signer.key -out signer.crt -days 30 -subj "/CN=Test Signer"
openssl pkcs12 -export -inkey signer.key -in signer.crt -out signer.p12