The Python library & CLI for PDF forms.
Actively maintained. Last release 2 days ago, commits in 18 of the last 26 weeks. A safe choice.
pip install pypdfform
PDF Form Automation Simplified - Create, Inspect, Style, and Fill Forms in Python or from the Command Line.
Introduction
PyPDFForm is a Python library and command line tool for working with PDF forms. It provides Python APIs and CLI commands for creating, inspecting, updating, and filling forms, plus common PDF utilities.
With PyPDFForm, you can:
- Create PDF forms, form fields, and raw elements.
- Inspect form fields, metadata, and values.
- Update field styling, behavior, and scripts.
- Fill PDF forms.
- Extract pages and merge PDFs.
The goal is to make PDF form work straightforward, whether you are handling one document or building a larger workflow.
Installing
To use PyPDFForm as a Python library, install the base package with pip:
pip install PyPDFForm
To use the CLI, install PyPDFForm with the cli extra using pipx:
pipx install "PyPDFForm[cli]"
Quick Example
