Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pyropdf

Latest version: v0.4.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: yhay81
2 Stars
0 Forks
7 Versions
2.7K Downloads
Python Repo language

Scan summary

pyropdf was last scanned on 24 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 2,713 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 24 Nov 2026 No rules fired
0.3.1 13 Nov 2026 No rules fired
0.3.0 6 Nov 2026 No rules fired
0.2.2 5 Nov 2026 Not shown
0.2.1 3 Nov 2026 Not shown

No rules fired in 0.4.0

Findings

Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

pyropdf

Read, render, and edit PDFs in Python. Undo your edits.

pyropdf combines a Python API with a Rust core: extract text and tables, render pages, fill forms, and annotate documents in one package. Transactions group edits into one undoable step; a failed transaction leaves the document as it was.

PyPI Python License: MIT

Documentation · Recipes · API reference · Choosing a PDF library · Japanese docs

See it work

Read an invoice Highlight, fill, and stamp it

These are real pyropdf renders. Walk through the four steps, open the resulting PDF, or reproduce the images.

Try it

Python 3.11–3.15 on Linux, macOS, and Windows, including free-threaded CPython. No required dependencies; OCR and CJK fallback fonts are optional extras.

pip install pyropdf

Run this in an empty directory. It creates its own PDF, highlights the total, renders a preview, undoes and redoes the highlight, and saves the result. No sample download or account is needed.

import pyropdf

with pyropdf.Document() as doc:
    page = doc.pages.new((360, 240))
    with page.draw() as canvas:
        canvas.text("Invoice total: $42", (30, 60),
                    font=pyropdf.Font.standard("Helvetica"), size=20)
    source = doc.to_bytes()

with pyropdf.open(source) as doc:
    page = doc.pages[0]
    print(page.text().strip())
    with doc.transaction("highlight total"):
        page.annotations.add(pyropdf.Highlight(page.search("$42")))
    page.pixmap(dpi=144).save("reviewed.png")

    doc.history.undo()
    print("After undo:", len(page.annotations))
    doc.history.redo()
    doc.save("reviewed.pdf", incremental=True)

Output:

Invoice total: $42
After undo: 0

Open reviewed.png or reviewed.pdf to see the highlighted total. For an existing file, use pyropdf.open("input.pdf").

What can I build?

Task Start here
Extract text, words, tables, Markdown, or retrieval chunks Reading content
Turn PDF pages into PNG, JPEG, or SVG Rendering
Fill forms, highlight text, stamp pages, or draw content Editing
Read scanned documents with offline OCR OCR
Undo/redo edits, save incrementally, encrypt, or sign Versions and saving

Why pyropdf?

  • Reversible edits. Group changes in a named transaction and undo or redo them through doc.history. Exceptions discard the whole transaction.
  • One document for reading, rendering, and editing. All engines read the same versioned object store. Preview an edit before saving it.
  • Incremental saves. Append changed objects while keeping the original file's bytes intact. Inspect doc.changes() before saving.
  • MIT licensed. Use it in open-source or commercial applications.

Choosing pyropdf compares capabilities and limitations with PyMuPDF, pypdf, and pikepdf. DESIGN.md explains the architecture.

Status and limits

0.4 series, alpha. The API may change between minor versions. Release notes describe each release. See status and safety for current coverage and limitations.

No pyropdf release claims safety for untrusted input before hayro's bounded construction (I2, #15) is released. DocumentLimits bounds the work of an operation, but it is not that claim.

Contributing

For your first contribution, browse the available good first issues and leave a comment on the one you would like to take.

CONTRIBUTING.md explains how to build, test, and propose a change, and SECURITY.md how to report a vulnerability.

If pyropdf is useful to you, star the repository to find it again. A small reproducible example in an issue helps improve it for your use case.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases pyropdf

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229