The script is designed to allow for automatically filling ATF form 5320.20.
- pdftk-server (Must add to your path enviroment varible).
- Python version 3.6 or greater.
pip install fill5320
- Copy static_data.csv, destinations_data.csv, firearms_data.csv, signature.png, fields.json, atf_form_5320.pdf to directory of choice.
- Modify owner information in static_data.csv
- Modify destinations in destinations_data.csv
- Modify firearms information in firearms_data.csv
- Edit signature.png
- From the desired working directory
python -m fill5320
- Filled files will be placed in a directory titled filled and signed will be placed in signed
- -i path to static data csv file, default is static_data.csv
- -d path to destination address file, default is destinations_data.csv
- -r path to firearms data csv file, default is firearms_data.csv
- -f path to field definition file, default is fields.json This is generated by pdfforms
- -s path to signature image file, default is signature.png should be png format and 987x143 pixels. Other sizes may work, but not tested
- -p position of signature image on pdf, default 1x70x195x200x12 (page number, x, y, width, height)