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

from formalpdf import Document

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:

from formalpdf import Document

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.1.tar.gz (7.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for formalpdf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ad068551bce83964acbc001443ce6a0d1eeb284d4fcb4e20ad5668e197d3a2be
MD5 9e4c5ef3752380f27c929471d868c301
BLAKE2b-256 4bb1e17119414066f4c26e85e2f3334cf9fd1d895aaa518091014bf350ea4e71

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for formalpdf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c732766ce2101cbb5a8275213185523017331e6c7dc423bf4ff8ae0cf01836a
MD5 8ba07bbe054768c3a5f22c3af971d59a
BLAKE2b-256 a10f2fe3c6662f370528c23a3f29e207e252b38b2a98d8b979ea1b119e7a329e

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