Skip to main content

pdf-form-tools

pdf-form-tools is an import-only Python package for filling layout-sensitive scanned PDF forms with deterministic placement helpers and visual verification primitives.

It is intentionally small:

  • render PDF pages to raster images
  • detect writable regions, checkbox boxes, signature lines, and ID slots
  • draw text, checks, and signatures onto an overlay
  • merge the overlay back into the original PDF

Install

python -m pip install pdf-form-tools

Supported Python versions: 3.11 through 3.14.

Example

from pathlib import Path

from pdf_form_tools import Rect, merge_overlay_pdf, render_pdf_page

source_pdf = Path("form.pdf")
preview_png = Path("preview-page1.png")
render_pdf_page(source_pdf, 0, 2, preview_png)

# draw your overlay separately, then merge it back
merge_overlay_pdf(source_pdf, Path("overlay-page1.png"), Path("form-filled.pdf"))

Development

python -m pip install -e ".[dev]"
python scripts/validate_repository.py --build-dir "$BUILD_DIR" --evidence-file "$EVIDENCE_FILE"

See CONTRIBUTING.md for validation path requirements and the release flow.

Scope

This package contains reusable low-level helpers only. Form-specific filling flows belong in project-local scripts or thin runners, not in the shared library.

Metadata

Release files for pdf-form-tools 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-form-tools 2.2.0
File Size Uploaded
pdf_form_tools-2.2.0.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-form-tools 2.2.0
File Interpreter ABI Platform
pdf_form_tools-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / pdf_form_tools-2.2.0.tar.gz

Download URL pdf_form_tools-2.2.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dd49caa35fe829f61104db8bf0cc53098bce9ad6b273c2983b45b892002cddb3
BLAKE2b-256 checksum
How to use checksums
0655cab9368dda6d7a31356fd66881ce861f8d59dc9fd32135c6664385a9218c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release files / pdf_form_tools-2.2.0-py3-none-any.whl

Download URL pdf_form_tools-2.2.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
706a5a4c575b73f4b08c6d3059b2fedfeda5d17230012e65aaf40a547decba9e
BLAKE2b-256 checksum
How to use checksums
3e2b2335bd62a2c24676b26e4644f9c767666c071d6140cb4c99c4dd252061e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release history Release notifications | RSS feed

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page