opendataloader-pdf

opendataloader-project/opendataloader-pdf

PDF Parser for AI-ready data. Automate PDF accessibility.

26k
Stars
2.5k
Forks
69
Open issues
106
Watchers
Java Apache-2.0Last pushed Jul 6, 2026

Overview

A Java-based tool designed to automate the parsing of PDF documents into structured formats like Markdown, JSON, and HTML, supporting OCR and table extraction. It also aids in automating the process of converting untagged PDFs into accessible Tagged PDFs, addressing regulatory compliance issues around document accessibility.

Categories

Tags

Similar tools

Install

git clone https://github.com/opendataloader-project/opendataloader-pdf

README

OpenDataLoader PDF

PDF Parser for AI-ready data. Automate PDF accessibility. Open-source.

opendataloader-project%2Fopendataloader-pdf | Trendshift

πŸ” PDF parser for AI data extraction β€” Extract Markdown, JSON (with bounding boxes), and HTML from any PDF. #1 in benchmarks (0.907 overall). Deterministic local mode + AI hybrid mode for complex pages.

  • How accurate is it? β€” #1 in benchmarks: 0.907 overall, 0.928 table accuracy across 200 real-world PDFs including multi-column and scientific papers. Deterministic local mode + AI hybrid mode for complex pages (benchmarks)
  • Scanned PDFs and OCR? β€” Yes. Built-in OCR (80+ languages) in hybrid mode. Works with poor-quality scans at 300 DPI+ (hybrid mode)
  • Tables, formulas, images, charts? β€” Yes. Complex/borderless tables, LaTeX formulas, and AI-generated picture/chart descriptions all via hybrid mode (hybrid mode)
  • How do I use this for RAG? β€” pip install opendataloader-pdf, convert in 3 lines. Outputs structured Markdown for chunking, JSON with bounding boxes for source citations, and HTML. LangChain integration available. Python, Node.js, Java SDKs (quick start | LangChain)

β™Ώ PDF accessibility automation β€” Auto-tag untagged PDFs into screen-reader-ready Tagged PDFs at scale. First open-source tool to generate Tagged PDFs end-to-end.

  • What's the problem? β€” Accessibility regulations are now enforced worldwide. Manual PDF remediation costs $50–200 per document and doesn't scale (regulations)
  • What's free? β€” Layout analysis + auto-tagging (Apache 2.0). Untagged PDF in β†’ Tagged PDF out. No proprietary SDK dependency (auto-tagging)
  • What about PDF/UA compliance? β€” Converting Tagged PDF to PDF/UA-1 or PDF/UA-2 is an enterprise add-on. Auto-tagging generates the Tagged PDF; PDF/UA export is the final step (pipeline)
  • Why trust this? β€” Built in collaboration with Dual Lab (veraPDF developers) based on PDF Association specifications, best practice guides and expertise of the PDF Community. Auto-tagging follows the Well-Tagged PDF specification, validated with veraPDF (collaboration)

Get Started in 30 Seconds

Requires: Java 11+ and Python 3.10+ (Node.js | Java also available)

Before you start: run java -version. If not found, install JDK 11+ from Adoptium.

pip install -U opendataloader-pdf
import opendataloader_pdf

# Batch all files in one call β€” each convert() spawns a JVM process, so repeated calls are slow
opendataloader_pdf.convert(
    input_path=["file1.pdf", "file2.pdf", "folder/"],
    output_dir="output/",
    format="markdown,json"
)

Annotated PDF output β€” each element (heading, paragraph, table, image) detected with bounding boxes and semantic type.

What Problems Does This Solve?

ProblemSolutionStatus
PDF structure lost during parsing β€” wrong reading order, broken tables, no element coordinatesDeterministic local PDF to Markdown/JSON with bounding boxes, XY-Cut++ reading orderShipped
Complex tables, scanned PDFs, formulas, charts need AI-level understandingHybrid mode routes complex pages to AI backend (#1 in benchmarks)Shipped
**Manual PDF