Fill out any PDF you want, automated!
Install the needed Python 3 packages:
pip3 install -r requirements.txt
To only fill one form, use the following command:
./fill-form.py geldzuwendung name="Max Mustermann" street="Musterstraße 123" city="12345 Musterstadt" date="31.12.2020" amount="42.23"
This will fill in the document configured in config/geldzuwendung
for Max Mustermann at the given address and date. The spenden amount translates to 42,23€. Do not omit the double ticks.
For filling out multiple documents, fill in the file csv/geldzuwendung.csv
and afterwards use the bundled shell script like so:
./batch.sh
This will create a directory called output
inside the working directory, where you will find all the created documents.
To print all the documents with the default printer use the following command:
lpr output/*.pdf
This requires CUPS to be installed. If you get an error about no default printer being set, please consult this help page.
Have a look at the config
directory. The files within should speak for themselves enough to let you create your own configs.