pylopdf
Archived — migrate to pyropdf.
pylopdfis archived;0.16.1is its final release, and this repository no longer accepts issues, pull requests, or security fixes. Development continues in pyropdf (documentation · PyPI · design).
Migrate to pyropdf
pip uninstall pylopdf
pip install pyropdf
pyropdf keeps pylopdf's concept and API design, rebuilt on a single
versioned object store in Rust
(why the foundation changed):
- Every engine reads the current document version from one store instead of
reserializing a
lopdfgraph after each edit, so edits cost what they touch. - Every edit produces an immutable version: failed transactions roll back
without cloning the document, and
doc.historyundoes and redoes changes. - Untouched objects keep their original bytes on save, and
doc.changesreports signatures or PDF/A and PDF/UA claims that a save would invalidate.
import pyropdf
with pyropdf.open("input.pdf") as doc:
page = doc.pages[0]
text = page.text()
hits = page.search("invoice")
page.pixmap(dpi=150).save("page.png")
with doc.transaction("annotate"):
page.annotations.add(pyropdf.Highlight(hits))
doc.save("output.pdf", incremental=True)
Updating existing code
- From
pylopdf0.16: replaceimport pylopdfwithimport pyropdfand check the differences below. - From
pylopdf0.15 orpymupdf: if you want mechanical rewrites to the 0.16 API first, runpython -m pylopdf.migrate src/frompylopdf[migrate]==0.16.1, then replaceimport pylopdfwithimport pyropdf.
Key differences between pylopdf 0.16 and pyropdf:
- Extras:
pyropdf[ocr],pyropdf[jp],pyropdf[ko],pyropdf[zh-cn], andpyropdf[zh-tw]reuse the existingpylopdf-ocr-modelsandpylopdf-fonts-*data packages. For other scripts (ar,he,hi,th), pass a font file topyropdf.Font.from_file(...). - Page boxes: read and assign
page.media_box,page.crop_box,page.bleed_box,page.trim_box, andpage.art_box(in display space) instead ofpage.boxes.*. - Creating documents: create an empty document with
pyropdf.Document(), add pages withdoc.pages.new(...)ordoc.pages.new_from_image(...), and draw withpage.draw(), in place ofpylopdf.create(). - Saving defaults:
doc.save()preserves untouched objects by default (compress=False, prune=False); passcompress=True, prune=Truewhen rewriting for size, orincremental=Trueto append only changed objects. - Warnings:
PyropdfWarningreplacesPylopdfWarning. - Untrusted input and WebAssembly: see
pyropdf's status and safety notes and
limits guide
before processing untrusted PDFs; WebAssembly wheels for
pyropdfare tracked on its roadmap. Existingpylopdfreleases remain installable from PyPI and GitHub Releases.
About pylopdf (archived)
pylopdf was a Python PDF library built on the Rust PDF engines
lopdf,
hayro,
krilla, and
HarfRust. Its
changelog and
roadmap remain in
this repository as a record.
License
Metadata
Release files for pylopdf 0.16.1
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 |
|---|---|---|---|---|
| pylopdf-0.16.1.tar.gz | 858.7 kB | With provenance | Details for pylopdf-0.16.1.tar.gz |
Built distributions (wheels)
Total release size: 156.9 MB
Release files / pylopdf-0.16.1.tar.gz
| Download URL | pylopdf-0.16.1.tar.gz |
|---|---|
| Size | 858.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b898310f6267a78c9cecb6f8eb5b43dfab4a928e1fe95a9b2111761239998ff8
|
|
BLAKE2b-256 checksum How to use checksums |
edc2ab03874954e5fa862de20946ae3f626294fa02e153884cf1b835e683a134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp315-cp315t-win_amd64.whl
| Download URL | pylopdf-0.16.1-cp315-cp315t-win_amd64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
142cafce0e4adab11621a21f3dadf71aa6a9847c5768b791784a2cd31d31b287
|
|
BLAKE2b-256 checksum How to use checksums |
8af8935c9aca54a8b694e40917a2f1f5ac3cbfef0a26246a61024d16964697a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pylopdf-0.16.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c2dbcd1adce197819d520f3be7fa303cf69af3665b29f6a2c92e0d3631c080c4
|
|
BLAKE2b-256 checksum How to use checksums |
7b3036e18c49d4ebf885abe71236ebcdf246578d8d14ad14d6e612ee9e982051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pylopdf-0.16.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
b52b25b3476c18d7bb2a5e9c7a8b1389d2d29b43a4c4a9c04b1a9abfcc0368b8
|
|
BLAKE2b-256 checksum How to use checksums |
a66118331367c95d457ed577b8af57d9f7f0243b1284f264ec179903679010d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp315-cp315t-macosx_11_0_arm64.whl
| Download URL | pylopdf-0.16.1-cp315-cp315t-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
44e43d3e26ba2a3a376965e88526d638b9cf1865a0f88ae1d4f973da05512139
|
|
BLAKE2b-256 checksum How to use checksums |
77103b972fb3a205d266a4954f05aceaee5e29002658a5b4331e0e6283cfc3a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp315-cp315t-macosx_10_12_x86_64.whl
| Download URL | pylopdf-0.16.1-cp315-cp315t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
fa094cbf4a4660029f0d13e3c434cf312c789c8c029e4c710a051a8ff9914064
|
|
BLAKE2b-256 checksum How to use checksums |
962809276baa6d0fd9871671770fab23edade6fac74e034994a1fe7cf0f8298b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp314-cp314t-win_amd64.whl
| Download URL | pylopdf-0.16.1-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e6521b232860c50a8828bae0829dc50f3f2714eda1a39070cf29af05cb6f3518
|
|
BLAKE2b-256 checksum How to use checksums |
ec57f4c8f227242a53990ec353e9d457f4b42d93d4364d0f4d80b4e07e2e2ddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pylopdf-0.16.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
038e085e3bfbb194e58449484895fa22a217c2f63d91587cc02ab47a62c69d03
|
|
BLAKE2b-256 checksum How to use checksums |
8fd352d59d829921eab4bae7bac23281beff37dc4abfbab05cf1a7f1d1be487f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pylopdf-0.16.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
d70a729500af823d5eedb418fa9e6fad4dfec7b0bc27579ffe3c6fbe9fe53c15
|
|
BLAKE2b-256 checksum How to use checksums |
0df16466a50a1316dfee4dd05eb9cd99f3f3c4acf67904f49052c1007ca01dd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | pylopdf-0.16.1-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c9808b79cf0cb29effdedffdd653d12a240eec3ac8a53ecd152fcafdbf6a472c
|
|
BLAKE2b-256 checksum How to use checksums |
a2dde92825820343b53e7fdf60e03e3599312a3b2b35ca11ec5e30b9a29e313c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp314-cp314t-macosx_10_12_x86_64.whl
| Download URL | pylopdf-0.16.1-cp314-cp314t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
2c921bad8c5526570236b2dd4a84eb59004335581455c51bac1f1520043e8016
|
|
BLAKE2b-256 checksum How to use checksums |
00ef7d0743799d3b6a00f99cebc5384598cfb95e1dc3a339b3e9684970612c78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-win_amd64.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
489ef5873b763eb693413ea04acf30fd08ed8964eb9167bee7d374f6225eeff1
|
|
BLAKE2b-256 checksum How to use checksums |
4d181ce05b67d6ea8ff42b9158b7187c8585a36271718f1af4bf7bd04abb9939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-pyemscripten_2025_0_wasm32.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-pyemscripten_2025_0_wasm32.whl |
|---|---|
| Size | 5.8 MB |
| Tags | CPython 3.11 PyEmscripten 2025.0+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
19c7707b48f82b005146a6bf95f1295592154950845302ed0a9f227330868695
|
|
BLAKE2b-256 checksum How to use checksums |
739bc4646a3d7202c4b56b28392ab05de6c8101af2a6b705018cc79142137285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2596c1c73d590ba4563c593e9638f9dfa5e3de0cacaa523e502eb4da8ee6ca7e
|
|
BLAKE2b-256 checksum How to use checksums |
12bbcb2ed52a8c0e6fc80c9000ad6552ef28c6ceb26c3c77bccbbd91ba3be80a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
10f7159c422bdabb2e691394ea307d077b131f8ccc1ef1f6cd0e6104a6b15489
|
|
BLAKE2b-256 checksum How to use checksums |
1adc4504ee45b611bd53f893202a350917db076f0135d40b7dc20e3966231a6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c6e4b84da96da29bcd7589e881efea0a0e017aafaac0ad12cba69b9c2d057e5
|
|
BLAKE2b-256 checksum How to use checksums |
edcf0e3550d8b47b01af020611c4f8ed1815a1bb70543f0b54f4bf69bad38dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logRelease files / pylopdf-0.16.1-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | pylopdf-0.16.1-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
042cb149b5c76e9bc629bf2056f4a897dc0437703382ede0cf75b1c04624d4ca
|
|
BLAKE2b-256 checksum How to use checksums |
86dda4cc3954e75a112ce9662a6b649d062270e881c83501efdb7166c65a9a9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 12, 2026.
Transparency logSecurity for pylopdf 0.16.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 17 files in this release have been uploaded with provenance metadata.
Attestation for pylopdf-0.16.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 12, 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.