Skip to main content

The Python library for PDF forms.

Project description

PDF Form Automation Simplified – Create, Merge, Style, and Fill Forms Programmatically.

Introduction

PyPDFForm is a Python 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

Quick Example

Check out the GitHub repository for a live demo if you can't see it here.

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

Star History

This project is maintained entirely in my spare time. If you like the project please consider starring the GitHub repository. It is the best way to keep me motivated and continue making the project better.

Stargazers over time

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypdfform-4.8.4.tar.gz (146.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypdfform-4.8.4-py3-none-any.whl (163.0 kB view details)

Uploaded Python 3

File details

Details for the file pypdfform-4.8.4.tar.gz.

File metadata

  • Download URL: pypdfform-4.8.4.tar.gz
  • Upload date:
  • Size: 146.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pypdfform-4.8.4.tar.gz
Algorithm Hash digest
SHA256 9b48b69852cae2ba503bd6db0c8762c214db26b11ee0f3e942d0bf4b1983c1f5
MD5 2411ed1859fffdf8cf3ec0f440e4dfe1
BLAKE2b-256 cddb133d1ca1743ff6b21da6df6d94308e457336f0d0bcc24c53d38c71f6ae31

See more details on using hashes here.

File details

Details for the file pypdfform-4.8.4-py3-none-any.whl.

File metadata

  • Download URL: pypdfform-4.8.4-py3-none-any.whl
  • Upload date:
  • Size: 163.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pypdfform-4.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f30e6e51b79a37c44db865afb06ea00acfba986dbeceb0d8a6a8cf385cb88db
MD5 a12a32400f17523003d719a80685d043
BLAKE2b-256 a8bacae302a1adb50d3799df581b4d0f6b62812a50c36505b0c9e8cd1439fc71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page