Automate PDF population with pdfpop.
You can install pdfpop with:
pip install pdfpopThe pdfpop usage consists of two steps: (1) form configuration and (2)
execution.
ℹ️ This step only needs to be run once for each unique form.
This step generates a form-specific configuration file that allows you to inform
pdfpop how data should be routed from the data file to the PDF form. You can
generate this file with the config command:
# Usage: pdfpop config <form>
pdfpop config examples/example-form.pdfThis will output a pdfpop- prefixed JSON file in your current working
directory (e.g., pdfpop-example-form.json). By default, all fields will be
assigned a value of null and, therefore, will be ignored until the null
value is replaced with instructions on how to populate the field. An example of
an edited configuration file is available here.
Once you have a form configuration file you can populate your PDF form using the
run command:
# Usage: pdfpop run <config> <data>
pdfpop run examples/example-form.json examples/example-data.xlsxThis will generate a populated PDF form at the location prescribed by the values
of<output_dir>/<output_name> in the configuration file (e.g.,
examples/pdfpop-example-form.pdf).
Copyright (C) 2022 Ian Dinwoodie
- Licensed under GNU General Public License v3.0.
- Exceptions:
- Material covered by Third Party Licenses.
- Logo icon: Popsicle stick icons created by Freepik - Flaticon
