> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-stream-1765228345-2909855.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenDataLoader PDF

**Safe, Open, High-Performance — PDF for AI**

[OpenDataLoader PDF](https://github.com/opendataloader-project/opendataloader-pdf) converts PDFs into JSON, Markdown or Html — ready to feed into modern AI stacks (LLMs, vector search, and RAG).

It reconstructs document layout (headings, lists, tables, and reading order) so the content is easier to chunk, index, and query.
Powered by fast, heuristic, rule-based inference, it runs entirely on your local machine and delivers high-throughput processing for large document sets.
AI-safety is enabled by default and automatically filters likely prompt-injection content embedded in PDFs to reduce downstream risk.

## Overview

### Integration details

| Class                                                                              | Package                                                                                | Local | Serializable | JS support |
| :--------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------- | :---: | :----------: | :--------: |
| [OpenDataLoader PDF](https://github.com/opendataloader-project/opendataloader-pdf) | [langchain-opendataloader-pdf](https://pypi.org/project/langchain-opendataloader-pdf/) |   ✅   |       ❌      |      ❌     |

### Loader features

|          Source         | Document Lazy Loading | Native Async Support |
| :---------------------: | :-------------------: | :------------------: |
| OpenDataLoaderPDFLoader |           ✅           |           ❌          |

The `OpenDataLoaderPDFLoader` component enables you to parse PDFs into structured [`Document`](https://reference.langchain.com/python/langchain_core/documents/#langchain_core.documents.base.Document) objects.

## Requirements

* Python >= 3.9
* Java 11 or newer available on the system `PATH`
* opendataloader-pdf >= 1.1.1

## Installation

```bash theme={null}
pip install -U langchain-opendataloader-pdf
```

## Quick start

```python theme={null}
from langchain_opendataloader_pdf import OpenDataLoaderPDFLoader

loader = OpenDataLoaderPDFLoader(
    file_path=["path/to/document.pdf", "path/to/folder"],
    format="text"
)
documents = loader.load()

for doc in documents:
    print(doc.metadata, doc.page_content[:80])
```

## Parameters

| Parameter            | Type                  | Required | Default | Description                                                                                                        |
| -------------------- | --------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| `file_path`          | `List[str]`           | ✅ Yes    | —       | One or more PDF file paths or directories to process.                                                              |
| `format`             | `str`                 | No       | `None`  | Output formats (e.g. `"json"`, `"html"`, `"markdown"`, `"text"`).                                                  |
| `quiet`              | `bool`                | No       | `False` | Suppresses CLI logging output when `True`.                                                                         |
| `content_safety_off` | `Optional[List[str]]` | No       | `None`  | List of content safety filters to disable (e.g. `"all"`, `"hidden-text"`, `"off-page"`, `"tiny"`, `"hidden-ocg"`). |

## Additional Resources

* [LangChain OpenDataLoader PDF integration GitHub](https://github.com/opendataloader-project/langchain-opendataloader-pdf)
* [LangChain OpenDataLoader PDF integration PyPI package](https://pypi.org/project/langchain-opendataloader-pdf/)
* [OpenDataLoader PDF GitHub](https://github.com/opendataloader-project/opendataloader-pdf)
* [OpenDataLoader PDF Homepage](https://opendataloader.org/)

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/document_loaders/opendataloader_pdf.mdx)
</Callout>

<Tip icon="terminal" iconType="regular">
  [Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>
