Transform static white box PDF forms into interactive forms for fast automation.
flyfield automatically analyzes static PDF forms, creates fillable fields, marks field locations for verification, fills and extracts data, and seamlessly converts money values between PDF text and spreadsheet/database numeric formats.
- Generate interactive form fields and marked-up PDFs from PDF white box forms
- Fill and export form data using CSV files
- Seamlessly convert money values between PDF text and CSV number formats
- Simple command-line interface for efficient workflows
- Open source and flexible for diverse PDF automation needs
Install with pipx:
pipx install flyfield
Check version:
flyfield --version
Or install via pip:
pip install flyfield
Run commands on PDF files as needed:
flyfield --input-pdf myfile.pdf --markup
--markupGenerate a PDF highlighting white boxes--fieldsAdd interactive form fields--fillFill form fields using data from a CSV file--captureExport filled form data to CSV--input-csvLoad field data from a CSV instead of extracting--debugShow detailed processing logs
flyfield --input-pdf form.pdf --markup --fields
flyfield --input-pdf form-fields.pdf --input-csv form.csv --fill form-fill.csv
flyfield --input-pdf form-filled.pdf --capture
Clone and install development tools:
git clone https://github.com/flywire/flyfield.git
cd flyfield
pip install -e .[dev]
Run tests:
tox
Modules:
extract— box detectionlayout— analyse, group and filter fieldsmarkup_and_fields— generate fields and markingsio_utils— data I/Outils— utility functions
For CLI help:
python -m flyfield.cli --help
GNU GPL v3.0 or later. See LICENSE.
Contributions welcome via issues and pull requests.
- Powered by PyMuPDF.
- Uses PyPDFForm.
- Designed to simplify workflows involving white boxed PDF form fields.