PDF Form Automation Simplified – Create, Merge, Style, and Fill Forms Programmatically.
Important Announcement
Hello fellow Python developers!
Please read this article about the upcoming v4.0.0 release and official deprecations of some old APIs.
Happy hacking!
Introduction
Note: This is a fork of PyPDFForm maintained by Reducto AI.
PyPDFForm is a free and open source pure-Python 3 library for PDF form processing. It contains the essential functionalities needed to interact with PDF forms:
- Inspect what data a PDF form needs to be filled with.
- Fill a PDF form by simply creating a Python dictionary.
- Create form fields on a PDF.
It also supports other common utilities such as extracting pages and merging multiple PDFs together.
Installing
Install using pip:
pip install PyPDFForm-reducto
Quick Example
A sample PDF form can be found here. Download it and try:
from PyPDFForm import PdfWrapper
filled = PdfWrapper("sample_template.pdf", need_appearances=True).fill(
{
"test": "test_1",
"check": True,
"test_2": "test_2",
"check_2": False,
"test_3": "test_3",
"check_3": True,
},
)
filled.write("output.pdf")
After running the above code snippet you can find output.pdf at the location you specified,
and it should look like this.
Documentation
The official documentation can be found on the GitHub page of this repository.
Other Resources
Metadata
Release files for PyPDFForm-reducto 3.8.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypdfform_reducto-3.8.2.6.tar.gz | 132.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypdfform_reducto-3.8.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 261.0 kB
Release files / pypdfform_reducto-3.8.2.6.tar.gz
| Download URL | pypdfform_reducto-3.8.2.6.tar.gz |
|---|---|
| Size | 132.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec396cb5d6c22ee9c119299fa54578147469786cb93cf59e6c054e907a151962
|
|
BLAKE2b-256 checksum How to use checksums |
3835ba037a0ac4fa188840fec2298314b7bc21cb9c8e396d7d89054f4fdbcecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.10
|
Release files / pypdfform_reducto-3.8.2.6-py3-none-any.whl
| Download URL | pypdfform_reducto-3.8.2.6-py3-none-any.whl |
|---|---|
| Size | 128.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43f2e10b71bdec3162791c73ab78a1bd65705b5616b1b2da056cd450c2a72815
|
|
BLAKE2b-256 checksum How to use checksums |
fe1ffea99b3288d0b0f9d6072756c6881783aa1262b56c86cbd0504c734f93b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.10
|