fillpdf
A Library to fill and flatten pdfs
What it is and what it does
fillpdf is a wrapper around PDF manipulation libraries that simplifies reading form fields from PDFs, filling them with data, and flattening the result into a non-editable document. It builds on pdfrw2 and adds convenience functions for common tasks: extracting field names and values, writing data to form fields (text boxes, checkboxes, radio buttons, dropdowns), rotating pages, and inserting images and text at specific coordinates.
The package is aimed at automating PDF form workflows—scenarios where you have a template PDF with fillable fields and need to programmatically populate them with data, then lock the result. It depends on pdfrw2, pdf2image, Pillow, and pymupdf, giving it multiple backends for different operations. The library is straightforward and practical but dormant; it has not been actively developed since its latest release.
Use it for:
- Batch-fill hundreds of application forms or invoices from a database or spreadsheet.
- Automate document generation workflows where you have a PDF template with named form fields.
- Lock completed PDF forms to prevent further editing after data entry.
- Extract and inspect form field names and structure from an existing PDF template.
- Insert signatures, images, or additional text into PDFs at precise coordinates.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Fills, flattens, and manipulates PDF forms by reading form fields, writing data to them, and inserting images and text at specified coordinates.
Yes, if you need straightforward PDF form filling and your use case matches the library's scope. Install friction is low and the MIT license is permissive. However, maintenance is dormant—no active development since 2024-05-03—so be prepared to fork or patch if you hit bugs. The dependency on pdfrw2 (a fork) adds uncertainty about long-term support. Suitable for stable, well-defined workflows; avoid if you need active maintenance or support for edge cases.
Install
fillpdf on PyPI
pip
pip install fillpdfuv
uv add fillpdfpoetry
poetry add fillpdfInstalling fillpdf
Before you install
Low friction install with a pure-Python wheel. Maintenance is dormant—last release was 2024-05-03 and last commit 2024-08-06—so expect no active bug fixes or feature development.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install fillpdf
from fillpdf import fillpdfs
fields = fillpdfs.get_form_fields('form.pdf')
data = {'Address1 Text Box': '500 West Main Street', 'Driving License Check Box': 'Yes'}
fillpdfs.write_fillable_pdf('form.pdf', 'filled.pdf', data)
Flattening with as_images=True requires poppler to be installed on your system; standard flattening does not.
Verify before relying
- Whether pdfrw2 (the forked pdfrw dependency) is actively maintained or has known issues.
- Compatibility of pdf2image and pymupdf dependencies with recent Python versions beyond 3.6.
- Whether the package handles complex PDF structures (nested forms, encrypted PDFs, etc.).
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — pdfrw2, pdf2image, Pillow, pymupdf |
| Maintenance | dormant — 833 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 238,016/month — #8,950 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fillpdf-0.7.3-py3-none-any.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
pypdftkPython wrapper that drives the pdftk binary to…
permissive · top 15,000 on PyPI
pdfrw2pdfrw2 reads, writes, and manipulates PDF files…
permissive · top 15,000 on PyPI
PyPDFFormPyPDFForm creates, inspects, styles, and fills…
permissive · top 15,000 on PyPI
pdfrwpdfrw reads, writes, and manipulates PDF files…
permissive · top 5,000 on PyPI
unPDFExtracts individual characters and metadata…
permissive · top 15,000 on PyPI
playa-pdfPlaya-pdf reads PDF files and exposes their…
permissive · top 15,000 on PyPI
streamlit-pdf-viewerStreamlit component that renders PDF documents…
unclear · top 15,000 on PyPI
streamlit-pdfAdds a PDF viewer component to Streamlit apps…
permissive · top 15,000 on PyPI
pikepdfpikepdf reads, writes, repairs, and transforms…
copyleft · top 5,000 on PyPI
pdfplumberExtract detailed information about text…
permissive · top 1,000 on PyPI