Fill a PDF form non-interactively offline.
- GNU Make
- Saxon HE
- pdftk-java
- xmllint from libxml2
make ${character}.pdf
make qa.xfdf qa.pdf
macOS Preview.app can fill forms in PDFs. It also crashes way more than it should, typically in the middle of typing.
D&D 5th Edition character sheet. Acquire the Fifth Edition Character Sheets from the official site and use the three-page model.
Acquire a form-fillable PDF as source.pdf
.
pdftk source.pdf generate_fdf output target.fdf
Research what the listed form fields do in target.fdf
. May require
experimentation.
Write an XSL stylesheet that creates valid XFDF from a source XML document.
make ${output}.pdf STYLESHEET=stylesheet.xsl SOURCEPDF=source.pdf