Git Product home page Git Product logo

5320_filler's Introduction

5320.20 Filler

Purpose

The script is designed to allow for automatically filling ATF form 5320.20.

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

Example Output

5320_filler's People

Contributors

prairiesnpr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.