opendataloader-pdf
БесплатноБез исполняемых скриптовНе проверенOpenDataLoader PDF converts PDF files into Markdown, JSON with bounding boxes, HTML or plain text, and can add accessibility tags to untagged PDFs. It runs…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
OpenDataLoader PDF — AI-Ready Document Parsing
Overview
OpenDataLoader PDF is an open-source (Apache-2.0) PDF parser. A Java engine reads the PDF and writes Markdown, JSON, HTML, plain text, an annotated PDF or a Tagged PDF; the Python and Node.js packages bundle the JAR and start it for you. The default mode is deterministic, runs on CPU and sends nothing to a network. An optional hybrid mode routes hard pages (borderless tables, scans, formulas, charts) to a local Docling-based server.
Every JSON element carries its type, page number and bounding box, so an answer in a RAG pipeline can point back to the exact place in the source file.
Instructions
Step 1: Install
Java 11 or newer must be on PATH — the packages do not ship a JVM. Without it the CLI stops with 'java' command not found.
java -version # must print 11 or higher
sudo apt install default-jre-headless # Debian/Ubuntu (Java 11, 17 or 21 depending on the release)
brew install --cask temurin # macOS
pip install -U opendataloader-pdf # Python 3.10+: library and CLI
npm install @opendataloader/pdf # Node.js 22.13+: library and CLI
Both packages install the same opendataloader-pdf command (npx opendataloader-pdf in a Node project).
Step 2: Convert from the command line
Pass any mix of files and folders. The default format is json, and output lands next to the input unless -o is given.
opendataloader-pdf reports/ invoice-2291.pdf -o parsed -f markdown,json
# One file to stdout (single format only)
opendataloader-pdf invoice-2291.pdf -f markdown --to-stdout -q
# Only some pages, with a page marker in the Markdown
opendataloader-pdf handbook.pdf -o parsed -f markdown --pages "1,3,5-7" \
--markdown-page-separator "--- page %page-number% ---"
# Encrypted file
opendataloader-pdf contract.pdf -o parsed -p "$CONTRACT_PDF_PASSWORD"
| Option | Values | Purpose |
|---|---|---|
-f, --format |
json, markdown, html, text, pdf, tagged-pdf |
Comma-separated output formats (pdf = annotated PDF for visual debugging) |
--image-output |
external (default), embedded, off |
Image files next to the output, Base64 data URIs, or no images |
--table-method |
default, cluster |
Border-based detection, or border plus text clustering |
--use-struct-tree |
flag | Read structure from the PDF's own tags instead of guessing |
--include-header-footer |
flag | Keep page headers and footers (dropped by default) |
--keep-line-breaks |
flag | Preserve original line breaks |
--markdown-with-html |
flag | Allow HTML in Markdown for tables with merged cells |
--sanitize |
flag | Replace emails, phone numbers, IPs, card numbers and URLs with placeholders |
--threads |
integer | Pages in parallel; values above 1 are experimental |
Run opendataloader-pdf --help for the full list.
Step 3: Use the Python or Node.js API
convert() takes the same options as the CLI in snake_case (Python) or camelCase (Node.js). It writes files: Python returns None and Node.js resolves to the CLI's console output, so read the results from the output directory.
import opendataloader_pdf
# One call for the whole batch: every convert() starts a JVM
opendataloader_pdf.convert(
input_path=["reports/", "invoice-2291.pdf"],
output_dir="parsed/",
format="markdown,json",
image_output="off",
quiet=True,
)
import { convert } from '@opendataloader/pdf';
await convert(['reports/', 'invoice-2291.pdf'], {
outputDir: 'parsed/',
format: 'markdown,json',
});
For LangChain, pip install -U langchain-opendataloader-pdf provides OpenDataLoaderPDFLoader(file_path=[...], format="text").
Step 4: Read the JSON
The top-level object holds document metadata (file name, number of pages, title, author) and kids, the elements in reading order. Field names contain spaces.
{
"type": "heading",
"id": 42,
"page number": 1,
"bounding box": [72.0, 700.0, 540.0, 730.0],
"heading level": 1,
"font": "Helvetica-Bold",
"font size": 24.0,
"content": "Introduction"
}
typeisheading,paragraph,table,list,image,captionorformula; with--include-header-footeralsoheaderandfooter.bounding boxis[left, bottom, right, top]in PDF points (72 pt = 1 inch);page numberstarts at 1.- A
tablehasnumber of rows,number of columnsandrows[].cells[]; each cell hasrow span,column spanand its text inkids[].content. - A
listhaslist items[]; animagehassource(the extracted file, absent with--image-output off) andalt_source.
Step 5: Hybrid mode for scans, complex tables, formulas and charts
Hybrid mode needs a second process: a local server built on Docling. It loads its models at startup, so start it once and keep it running.
pip install -U "open
Установить opendataloader-pdf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл opendataloader-pdf?
OpenDataLoader PDF converts PDF files into Markdown, JSON with bounding boxes, HTML or plain text, and can add accessibility tags to untagged PDFs. It runs locally on Java with a CLI and Python, Node.js and Java APIs. Use when a user asks to parse PDFs for RAG, convert a PDF to Markdown, extract tables or headings with page coordinates, OCR scanned PDFs, or produce Tagged PDFs.
Как установить скилл opendataloader-pdf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл opendataloader-pdf запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic