Skip to main content
PDF Parsing for RAG: Convert to Markdown & JSON, Fast, Local, No GPU OpenDataLoader PDF converts PDFs into LLM-ready Markdown and JSON with accurate reading order, table extraction, and bounding boxes—all running locally on your machine. Why developers choose OpenDataLoader:
  • Deterministic—Same input always produces same output (no LLM hallucinations)
  • Fast—Process 100+ pages per second on CPU
  • Private—100% local, zero data transmission
  • Accurate—Bounding boxes for every element, correct multi-column reading order

Overview

Integration details

ClassPackageLocalSerializableJS support
OpenDataLoader PDFlangchain-opendataloader-pdf

Loader features

SourceDocument Lazy LoadingNative Async Support
OpenDataLoaderPDFLoader
The OpenDataLoaderPDFLoader component enables you to parse PDFs into structured Document objects.

Requirements

  • Python >= 3.10
  • Java 11 or newer available on the system PATH

Installation

Quick start

Parameters

ParameterTypeDefaultDescription
file_pathstr | List[str](Required) PDF file path(s) or directories
formatstr"text"Output format: "text", "markdown", "json", "html"
split_pagesboolTrueSplit into separate Documents per page
quietboolFalseSuppress console logging
passwordstrNonePassword for encrypted PDFs
use_struct_treeboolFalseUse PDF structure tree (tagged PDFs)
table_methodstr"default""default" (border-based) or "cluster" (border + clustering)
reading_orderstr"xycut""xycut" or "off"
keep_line_breaksboolFalsePreserve original line breaks
image_outputstr"off""off", "embedded" (Base64), or "external"
image_formatstr"png""png" or "jpeg"
content_safety_offList[str]NoneDisable safety filters: "hidden-text", "off-page", "tiny", "hidden-ocg", "all"
replace_invalid_charsstrNoneReplacement for invalid characters

Usage examples

Output formats

Tagged PDF support

For accessible PDFs with structure tags (common in government/legal documents):

Password-Protected PDFs

Image handling

Document metadata

Each returned Document includes metadata:

Additional resources