sealwax for Python
Python bindings of sealwax, a PDF library written in Rust.
- Read PDF documents and their page geometry.
- Fill and flatten annotations, apply XFDF.
- Convert to PDF/A-3 (levels b, u and a).
- Sign with PAdES signatures, timestamps, long-term validation data and document timestamps
(up to B-LTA). The key stays in your HSM: any object with
sign_digestsigns. - Check the integrity of the signatures a document holds.
- Convert Word documents (DOCX) to PDF, tagged with their structure and bookmarks, laid out by docxide-pdf. Fonts are those installed, and the directories you name first.
sealwax works with the interpreter lock released, within Limits that bound what a hostile document
may cost, and can run an operation in a process of its own, with a memory cap
(sealwax.isolated).
import sealwax
data = open("in.pdf", "rb").read()
archived, report = sealwax.pdfa_convert(data, level="3a", limits=sealwax.Limits(timeout=60))
# The layout's own time is not bounded: a document you do not trust converts in a process of
# its own.
docx = open("in.docx", "rb").read()
pdf, report = sealwax.isolated(sealwax.docx_to_pdf, docx, timeout=60, memory=2 << 30)
Licensed under MIT OR Apache-2.0, at your option.
Document.words, Document.text_blocks and Document.search read the current page,
including pending edits. They omit character boxes outside the page crop or the bounding
boxes of active clipping paths, including form and annotation appearance boxes.
Invisible OCR text inside these bounds remains searchable.
sign, verify_signatures, add_document_timestamp and add_validation_data accept
a keyword-only limits argument. Explicit limits are checked before contacting a key
provider or network service. The deadline counts local PDF processing, including hashing.
Configure network and HSM timeouts on those clients.
doc.insert_image(0, (36, 36, 180, 108), image_bytes) draws a JPEG or PNG over the
first page. The rectangle gives the left, bottom, right and top edges in default PDF
user space, before page rotation. The image is centered and keeps its proportions.
Pass keep_proportion=False to fill the rectangle. JPEG orientation and PNG transparency
are honored, and the document's max_image_pixels applies.
Metadata
Release files for sealwax 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sealwax-0.9.0.tar.gz | 1.0 MB | With provenance | Details for sealwax-0.9.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sealwax-0.9.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for sealwax-0.9.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| sealwax-0.9.0-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for sealwax-0.9.0-cp312-abi3-manylinux_2_28_aarch64.whl |
| sealwax-0.9.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for sealwax-0.9.0-cp312-abi3-macosx_11_0_arm64.whl |
Total release size: 26.7 MB
Release files / sealwax-0.9.0.tar.gz
| Download URL | sealwax-0.9.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
842ac104471d492587fa6750970faf98ee1cb0c31f3163c7917ac0178b34a5ee
|
|
BLAKE2b-256 checksum How to use checksums |
c9a71d9a0dcf69a7432350978c14e83485d3d63f68833677d4cdd34e4a4466c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / sealwax-0.9.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | sealwax-0.9.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
eb0a5e901d7ec9085ad7efef0bd88e564d4d0a257438311ff39a2f95886616b1
|
|
BLAKE2b-256 checksum How to use checksums |
8405eec6b84652efe9668d748af0086eb31a8472298c3e7f6ee2cc84f33474b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / sealwax-0.9.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | sealwax-0.9.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
bcfdd87886564b3dc0619318b8a99ae468b70a0d70194ace0f08c57b427d4af0
|
|
BLAKE2b-256 checksum How to use checksums |
87fc171641223f9823c614c107ab02e8485d6d90987a834b9b8fe14dc6ffa654
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / sealwax-0.9.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | sealwax-0.9.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
676d7959eaeda71d980ad0e030370c0e6355fce955d1832ae757467ff95b5fba
|
|
BLAKE2b-256 checksum How to use checksums |
fe3f060aa821a089292f0e0f0e21b7e4a92d03b5caa6e095754ad6876df6731d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for sealwax 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for sealwax-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.