Skip to main content

The Python library for PDF forms. Forked and maintained by Reducto AI.

Project description

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

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

Chicago Python User Group - Dec 14, 2023

Project details


Download files

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

Source Distribution

pypdfform_reducto-3.8.2.2.tar.gz (131.3 kB view details)

Uploaded Source

Built Distribution

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

pypdfform_reducto-3.8.2.2-py3-none-any.whl (128.3 kB view details)

Uploaded Python 3

File details

Details for the file pypdfform_reducto-3.8.2.2.tar.gz.

File metadata

  • Download URL: pypdfform_reducto-3.8.2.2.tar.gz
  • Upload date:
  • Size: 131.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pypdfform_reducto-3.8.2.2.tar.gz
Algorithm Hash digest
SHA256 3480ed21d99d9201e5f31d5432b1b5e4b48f28c0e8d337e0c64b268ecc610786
MD5 1c389d1e9843881e092fba96bbb27738
BLAKE2b-256 dc95ae753d30b630d05f75f4aa43710261fe51c6d4d1632b51a3b1c0beded087

See more details on using hashes here.

File details

Details for the file pypdfform_reducto-3.8.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pypdfform_reducto-3.8.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76b3f9d2c5574525900d2329f94100234089f0e1c1b11457613fd671154ea23e
MD5 49b8b4a63efbc5afaa2447aa9c44d542
BLAKE2b-256 c8c1c0b168be729ee662f2c0fe1afb1644c2eb1ea6c9cf571cfdabe5358e4a88

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