Skip to main content

An Apache-licensed package for extracting, creating, filling, and flattening PDF Forms.

Project description

formalpdf

formalpdf is an Apache-licensed python library for PDF forms. It's a unified API for extracting, creating, filling, and flattening forms. It has a similar, but not drop-in, high-level API to PyMuPDF. All of this is possible by wrapping pdfium, thanks to the low-level bindings made available through pypdfium2.

Installation

uv pip install formalpdf

Usage

Get All Widget Objects in a PDF

doc = Document("/path/to/your.pdf")

for page in doc:
    widgets = page.widgets()

Navigating Unsupported Operations

You can access the raw PdfDocument from pypdfium2 using by calling:

doc = Document("/path/to/your.pdf")

pdfium_doc = doc.document

You can use this to do lower-level operations that aren't yet supported by formalpdf.

Roadmap

  • create PyPI package
  • finish widget extraction
  • widget updating
  • widget creation
  • tests

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

formalpdf-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

formalpdf-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file formalpdf-0.1.0.tar.gz.

File metadata

  • Download URL: formalpdf-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for formalpdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32bdfc91c843c9704e9c7dba3a3af9cf6bedded57c3250141a9f25d2d2caf398
MD5 6cffa5b26b4778a3b759fe75e6ce4223
BLAKE2b-256 a9af6e9c744362b52fe2070639940dc9db20667194aa9ac3b2f68eb042c50257

See more details on using hashes here.

File details

Details for the file formalpdf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: formalpdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for formalpdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c264e5fcc88aea9d70c78c8aaa8335e7b7a48d8889407b5be2f0acfe40c4ebc
MD5 7b9940c89dfbacb0d6791a9a0abeadd8
BLAKE2b-256 3e1a3786b16f72f8f03aa0d5059029645df1aafbc2c8fc4c7dac97c847797bb4

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