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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32bdfc91c843c9704e9c7dba3a3af9cf6bedded57c3250141a9f25d2d2caf398
|
|
| MD5 |
6cffa5b26b4778a3b759fe75e6ce4223
|
|
| BLAKE2b-256 |
a9af6e9c744362b52fe2070639940dc9db20667194aa9ac3b2f68eb042c50257
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c264e5fcc88aea9d70c78c8aaa8335e7b7a48d8889407b5be2f0acfe40c4ebc
|
|
| MD5 |
7b9940c89dfbacb0d6791a9a0abeadd8
|
|
| BLAKE2b-256 |
3e1a3786b16f72f8f03aa0d5059029645df1aafbc2c8fc4c7dac97c847797bb4
|