Skip to main content

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_digest signs.
  • 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sealwax 0.9.1
File Size Uploaded Provenance Actions
sealwax-0.9.1.tar.gz 1.1 MB With provenance Details for sealwax-0.9.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sealwax 0.9.1
File Interpreter ABI Platform Actions
sealwax-0.9.1-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for sealwax-0.9.1-cp312-abi3-manylinux_2_28_x86_64.whl
sealwax-0.9.1-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for sealwax-0.9.1-cp312-abi3-manylinux_2_28_aarch64.whl
sealwax-0.9.1-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for sealwax-0.9.1-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 26.8 MB

Release files / sealwax-0.9.1.tar.gz

Download URL sealwax-0.9.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c657f4af5d558d758e5b85db7d8bffe42d203f4bb5a1a88ecc0aa992cd22de19
BLAKE2b-256 checksum
How to use checksums
73fef3f5e436f4191cfcc459f31dc80ad192c91c0477e19ebc122f4b29c72271
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 24, 2026.

Transparency log

Release files / sealwax-0.9.1-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL sealwax-0.9.1-cp312-abi3-manylinux_2_28_x86_64.whl
Size 9.2 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
fbb4134da9f4b5e91729a78832318dad5eb7f5b2d861870a3c37b35cedbf6e21
BLAKE2b-256 checksum
How to use checksums
cf9b4ddd2d23b595b60929bf12d6b4ee3ede98a43f1cc5dea261aafd205409f9
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 24, 2026.

Transparency log

Release files / sealwax-0.9.1-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL sealwax-0.9.1-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
9ce29b9781f12a794fb3373cb5bf0154ce19ed0351b6b1b9c5f1640fefe69044
BLAKE2b-256 checksum
How to use checksums
73d67abeb300475ab062eafb5e0fa4f90f64fb746368ed7c8e52197214a1ce1a
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 24, 2026.

Transparency log

Release files / sealwax-0.9.1-cp312-abi3-macosx_11_0_arm64.whl

Download URL sealwax-0.9.1-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
fa8485c8e7e20c3642d78a5bab39baa3ee3c8cf6fe493616ee09e1fc23c3fe04
BLAKE2b-256 checksum
How to use checksums
c03aa2b1f98dfb0d20f616e710d40c144953f11bd6d8d81f90285f1c72505508
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 24, 2026.

Transparency log

Security for sealwax 0.9.1

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.

Select from 4 files

Attestation for sealwax-0.9.1.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 24, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page