Registry / data / opendataloader-pdf

opendataloader-pdf

JSON →
library2.4.3pypypi✓ verified 79d ago

A Python wrapper for the opendataloader-pdf Java CLI that extracts structured content and metadata from PDFs, supporting accessibility tags, tables, headings, and strikethrough text. Current version 2.4.3, requires Python >=3.10, released every few months.

pip install opendataloader-pdf
INSTALL
IMPORT
SIG · OPENDATALOADER-PDF
O
opendataloader-pdf
datapythonv2.4.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
from opendataloader_pdf import run
from opendataloader_pdf import OpenDataLoaderPDF
convert
from opendataloader_pdf import convert
from opendataloader_pdf import OpenDataLoaderPDF
runner
from opendataloader_pdf import runner
from opendataloader_pdf import OpenDataLoaderPDF

Initialize the extractor with an API key and extract content from a PDF file.

from opendataloader_pdf import OpenDataLoaderPDF loader = OpenDataLoaderPDF(api_key=os.environ.get('API_KEY', '')) with open('document.pdf', 'rb') as f: result = loader.extract(f) print(result['content'][:200])
Debug
Known issues
breakingThe `-–hybrid-fallback` default changed to `false` in v2.0.1, causing hybrid extraction to fail fast instead of falling back to rule-based extraction.
fix
Set `hybrid_fallback=True` explicitly if you want the old fallback behavior.
affects: >=2.0.1
gotchaThe library requires Java 11+ at runtime. If Java is missing or too old, extraction fails with a subprocess error.
fix
Install Java 11+ and ensure `java` is on PATH.
affects: all
deprecatedThe old `–-extract-text` flag is deprecated in v2.3.0 in favor of `–-output-format text`.
fix
Use `output_format='text'` instead of `extract_text=True`.
affects: >=2.3.0
Upgrade
Version history
2.4.3latest on PyPI · released May 7, 2026
Audit
Dependencies
javarequiredRequires Java 11+ runtime to invoke the embedded CLI.
Agent activity
4 hits · last 30 days
node
4
Resources
opendataloader-pdf — pip install opendataloader-pdf · libregistry