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.

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", adobe_mode=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.6.1.tar.gz (124.7 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.6.1-py3-none-any.whl (120.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypdfform_reducto-3.6.1.tar.gz
  • Upload date:
  • Size: 124.7 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.6.1.tar.gz
Algorithm Hash digest
SHA256 8c84f0912b793d155c178ac590a8ea86efd781b7b486eb73ffb30a8fb22ea1a6
MD5 86002d9ebe779b4ca2626710d3e4feea
BLAKE2b-256 3db60d7d062b75b2a79b04dedff287601f22cb8ade64eb88a3df53f298533fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pypdfform_reducto-3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0180acd91d262b4f840d28bb3804b9c5de7e7ec7cf219fc194acf0d14e173939
MD5 535405f63e5125ee62ffde99039d4079
BLAKE2b-256 f2e6bd1b43d4352e7df302ef71367aaa99fbfbeebb324285b0febc5daaae92c1

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