Skip to content

flipdot/print-o-matic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

print-o-matic

Fill out any PDF you want, automated!

Prerequisites

Install the needed Python 3 packages:

pip3 install -r requirements.txt

Single document

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.

Batch creation

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.

Batch printing

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.

Custom documents

Have a look at the config directory. The files within should speak for themselves enough to let you create your own configs.

About

Fill out any PDF you want, automated!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published