Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Python bindings to JPDFium's native core, with no JVM. This is a thin nanobind layer over the safe
jpdf_*API from Stirling-Tools/JPDFiumfeat/native-safe-domain, which CI builds from source. One stage per commit:OcrEngine: PP-OCRv6 via JPDFium's OCR module, matching the official PaddleOCR pipeline.pyjpdfiumcommand and the OCRmyPDF plugin.info,render,ocr,fonts,models,doctor.ocrmypdf --plugin pyjpdfium.ocrmypdf, needs neither Tesseract nor Ghostscript. It refuses modes it has not been checked in, PDF/A among them.tools/build_wheel.py).OcrEngine(max_concurrent=...), plus benchmarks against Tesseract (docs/PERFORMANCE.md).The native core is staged with its own sonames (
tools/stage_natives.py). Without that, OCRmyPDF's pypdfium2 would capture our PDFium dependency in the same process.Testing
All offline in containers:
ubuntu:24.04: the wheel and the plugin run with no network, and every native library loads from the wheel.Notes
docs/PERFORMANCE.md).