@opendataloader/pdf 1.12.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,20 +1,45 @@
1
+ <!-- AI-AGENT-SUMMARY
2
+ name: opendataloader-pdf
3
+ category: PDF data extraction, PDF accessibility automation
4
+ license: Apache-2.0
5
+ solves: [PDF to structured data for RAG/LLM pipelines, automate PDF accessibility compliance — layout analysis + auto-tagging to Tagged PDF (first open-source end-to-end)]
6
+ input: PDF files (digital, scanned, tagged)
7
+ output: Markdown, JSON (with bounding boxes), HTML, Tagged PDF, PDF/UA (enterprise)
8
+ sdk: Python, Node.js, Java
9
+ requirements: Java 11+
10
+ pricing: open-source core (data extraction, layout analysis, auto-tagging to Tagged PDF), enterprise add-on (PDF/UA export, accessibility studio)
11
+ extraction-benchmark: #1 overall extraction accuracy (0.90) in hybrid mode, 0.93 table extraction accuracy, 0.05s/page local mode
12
+ accessibility-validation: PDF Association collaboration, Well-Tagged PDF specification, veraPDF automated validation
13
+ key-differentiators: [benchmark #1 PDF parser, deterministic output, bounding boxes for every element, XY-Cut++ reading order, AI safety filters, hybrid AI mode, first open-source PDF auto-tagging to Tagged PDF, PDF Association + Dual Lab (veraPDF) collaboration, Well-Tagged PDF spec compliance]
14
+ -->
15
+
1
16
  # OpenDataLoader PDF
2
17
 
3
- **PDF Parsing for RAG** Convert to Markdown & JSON, Fast, Local, No GPU
18
+ **PDF Parser for AI-ready data. Automate PDF accessibility. Open-source.**
4
19
 
5
- [![License](https://img.shields.io/pypi/l/opendataloader-pdf.svg)](https://github.com/opendataloader-project/opendataloader-pdf/blob/main/LICENSE)
20
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/opendataloader-project/opendataloader-pdf/blob/main/LICENSE)
6
21
  [![PyPI version](https://img.shields.io/pypi/v/opendataloader-pdf.svg)](https://pypi.org/project/opendataloader-pdf/)
7
22
  [![npm version](https://img.shields.io/npm/v/@opendataloader/pdf.svg)](https://www.npmjs.com/package/@opendataloader/pdf)
8
23
  [![Maven Central](https://img.shields.io/maven-central/v/org.opendataloader/opendataloader-pdf-core.svg)](https://search.maven.org/artifact/org.opendataloader/opendataloader-pdf-core)
9
24
  [![Java](https://img.shields.io/badge/Java-11%2B-blue.svg)](https://github.com/opendataloader-project/opendataloader-pdf#java)
10
25
 
11
- Convert PDFs into **LLM-ready Markdown and JSON** with accurate reading order, table extraction, and bounding boxes all running locally on your machine.
26
+ 🔍 **PDF parser for AI data extraction** Extract Markdown, JSON (with bounding boxes), and HTML from any PDF. #1 in benchmarks (0.90 overall). Deterministic local mode + AI hybrid mode for complex pages.
27
+
28
+ - **How accurate is it?** — #1 in benchmarks: 0.90 overall, 0.93 table accuracy across 200 real-world PDFs including multi-column and scientific papers. Deterministic local mode + AI hybrid mode for complex pages ([benchmarks](#extraction-benchmarks))
29
+ - **Scanned PDFs and OCR?** — Yes. Built-in OCR (80+ languages) in hybrid mode. Works with poor-quality scans at 300 DPI+ ([hybrid mode](#hybrid-mode-1-accuracy-for-complex-pdfs))
30
+ - **Tables, formulas, images, charts?** — Yes. Complex/borderless tables, LaTeX formulas, and AI-generated picture/chart descriptions all via hybrid mode ([hybrid mode](#hybrid-mode-1-accuracy-for-complex-pdfs))
31
+ - **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](#get-started-in-30-seconds) | [LangChain](#langchain-integration))
32
+
33
+ ♿ **PDF accessibility automation** — The same layout analysis engine also powers auto-tagging. First open-source tool to generate Tagged PDFs end-to-end (coming Q2 2026).
34
+
35
+ - **What's the problem?** — Accessibility regulations are now enforced worldwide. Manual PDF remediation costs $50–200 per document and doesn't scale ([regulations](#pdf-accessibility--pdfua-conversion))
36
+ - **What's free?** — Layout analysis + auto-tagging (Q2 2026, Apache 2.0). Untagged PDF in → Tagged PDF out. No proprietary SDK dependency ([auto-tagging preview](#auto-tagging-preview-coming-q2-2026))
37
+ - **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](#accessibility-pipeline))
38
+ - **Why trust this?** — Built in collaboration with [PDF Association](https://pdfa.org) and [Dual Lab](https://duallab.com) ([veraPDF](https://verapdf.org) developers). Auto-tagging follows the Well-Tagged PDF specification, validated with veraPDF ([collaboration](https://opendataloader.org/docs/tagged-pdf-collaboration))
12
39
 
13
- **Why developers choose OpenDataLoader:**
14
- - **Deterministic** — Same input always produces same output (no LLM hallucinations)
15
- - **Fast** Process 100+ pages per second on CPU
16
- - **Private** — 100% local, zero data transmission
17
- - **Accurate** — Bounding boxes for every element, correct multi-column reading order
40
+ ## Get Started in 30 Seconds
41
+
42
+ **Requires**: Java 11+ and Python 3.9+ ([Node.js](https://opendataloader.org/docs/quick-start-nodejs) | [Java](https://opendataloader.org/docs/quick-start-java) also available)
18
43
 
19
44
  ```bash
20
45
  pip install -U opendataloader-pdf
@@ -23,225 +48,178 @@ pip install -U opendataloader-pdf
23
48
  ```python
24
49
  import opendataloader_pdf
25
50
 
26
- # PDF to Markdown for RAG
51
+ # Batch all files in one call — each convert() spawns a JVM process, so repeated calls are slow
27
52
  opendataloader_pdf.convert(
28
- input_path="document.pdf",
53
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
29
54
  output_dir="output/",
30
55
  format="markdown,json"
31
56
  )
32
57
  ```
33
58
 
34
- <br/>
35
-
36
- ## Why OpenDataLoader?
37
-
38
- Building RAG pipelines? You've probably hit these problems:
39
-
40
- | Problem | How We Solve It |
41
- |---------|-----------------|
42
- | **Multi-column text reads left-to-right incorrectly** | XY-Cut++ algorithm preserves correct reading order |
43
- | **Tables lose structure** | Border + cluster detection keeps rows/columns intact |
44
- | **Headers/footers pollute context** | Auto-filtered before output |
45
- | **No coordinates for citations** | Bounding box for every element |
46
- | **Cloud APIs = privacy concerns** | 100% local, no data leaves your machine |
47
- | **GPU required** | Pure CPU, rule-based runs anywhere |
48
-
49
- <br/>
50
-
51
- ## Key Features
52
-
53
- ### For RAG & LLM Pipelines
54
-
55
- - **Structured Output** JSON with semantic types (heading, paragraph, table, list, caption)
56
- - **Bounding Boxes** Every element includes `[x1, y1, x2, y2]` coordinates for citations
57
- - **Reading Order** XY-Cut++ algorithm handles multi-column layouts correctly
58
- - **Noise Filtering** Headers, footers, hidden text, watermarks auto-removed
59
- - **LangChain Integration** [Official document loader](https://docs.langchain.com/oss/python/integrations/document_loaders/opendataloader_pdf)
60
-
61
- ### Performance & Privacy
62
-
63
- - **No GPU** Fast, rule-based heuristics
64
- - **Local-First** Your documents never leave your machine
65
- - **High Throughput** Process thousands of PDFs efficiently
66
- - **Multi-Language SDK** Python, Node.js, Java
59
+ ## What Problems Does This Solve?
60
+
61
+ | Problem | Solution | Status |
62
+ |---------|----------|--------|
63
+ | **PDF structure lost during parsing** wrong reading order, broken tables, no element coordinates | Deterministic local PDF to Markdown/JSON with bounding boxes, XY-Cut++ reading order | Shipped |
64
+ | **Complex tables, scanned PDFs, formulas, charts** need AI-level understanding | Hybrid mode routes complex pages to AI backend (#1 in benchmarks) | Shipped |
65
+ | **PDF accessibility compliance** — EAA, ADA, Section 508 enforced. Manual remediation $50–200/doc | Auto-tagging: layout analysis Tagged PDF (free, Q2 2026). Built with PDF Association & veraPDF validation. PDF/UA export (enterprise add-on) | Auto-tag: Q2 2026 |
66
+
67
+ ## Capability Matrix
68
+
69
+ | Capability | Supported | Tier |
70
+ |------------|-----------|------|
71
+ | **Data extraction** | | |
72
+ | Extract text with correct reading order | Yes | Free |
73
+ | Bounding boxes for every element | Yes | Free |
74
+ | Table extraction (simple borders) | Yes | Free |
75
+ | Table extraction (complex/borderless) | Yes | Free (Hybrid) |
76
+ | Heading hierarchy detection | Yes | Free |
77
+ | List detection (numbered, bulleted, nested) | Yes | Free |
78
+ | Image extraction with coordinates | Yes | Free |
79
+ | AI chart/image description | Yes | Free (Hybrid) |
80
+ | OCR for scanned PDFs | Yes | Free (Hybrid) |
81
+ | Formula extraction (LaTeX) | Yes | Free (Hybrid) |
82
+ | Tagged PDF structure extraction | Yes | Free |
83
+ | AI safety (prompt injection filtering) | Yes | Free |
84
+ | Header/footer/watermark filtering | Yes | Free |
85
+ | **Accessibility** | | |
86
+ | Auto-tagging Tagged PDF for untagged PDFs | Coming Q2 2026 | Free (Apache 2.0) |
87
+ | PDF/UA-1, PDF/UA-2 export | 💼 Available | Enterprise |
88
+ | Accessibility studio (visual editor) | 💼 Available | Enterprise |
89
+ | **Limitations** | | |
90
+ | Process Word/Excel/PPT | No | |
91
+ | GPU required | No | — |
92
+
93
+ ## Extraction Benchmarks
94
+
95
+ **opendataloader-pdf [hybrid] ranks #1 overall (0.90)** across reading order, table, and heading extraction accuracy.
96
+
97
+ | Engine | Overall | Reading Order | Table | Heading | Speed (s/page) |
98
+ |--------|---------|---------------|-------|---------|----------------|
99
+ | **opendataloader [hybrid]** | **0.90** | **0.94** | **0.93** | **0.83** | 0.43 |
100
+ | opendataloader | 0.72 | 0.91 | 0.49 | 0.76 | **0.05** |
101
+ | docling | 0.86 | 0.90 | 0.89 | 0.80 | 0.73 |
102
+ | marker | 0.83 | 0.89 | 0.81 | 0.80 | 53.93 |
103
+ | mineru | 0.82 | 0.86 | 0.87 | 0.74 | 5.96 |
104
+ | pymupdf4llm | 0.57 | 0.89 | 0.40 | 0.41 | 0.09 |
105
+ | markitdown | 0.29 | 0.88 | 0.00 | 0.00 | **0.04** |
106
+
107
+ > Scores normalized to [0, 1]. Higher is better for accuracy; lower is better for speed. **Bold** = best. [Full benchmark details](https://github.com/opendataloader-project/opendataloader-bench)
67
108
 
68
- ### Document Understanding
69
-
70
- - **Tables** — Detects borders, handles merged cells
71
- - **Lists** — Numbered, bulleted, nested
72
- - **Headings** — Auto-detects hierarchy levels
73
- - **Images** — Extracts with captions linked
74
- - **Tagged PDF Support** — Uses native PDF structure when available
75
- - **AI Safety** — Auto-filters prompt injection content
76
-
77
- <br/>
109
+ [![Benchmark](https://github.com/opendataloader-project/opendataloader-bench/raw/refs/heads/main/charts/benchmark.png)](https://github.com/opendataloader-project/opendataloader-bench)
78
110
 
79
111
  ## Which Mode Should I Use?
80
112
 
81
- | Your Document | Mode | Setup |
82
- |---------------|------|-------|
83
- | Standard digital PDF | Fast (default) | `pip install opendataloader-pdf` |
84
- | Complex or nested tables | Hybrid | + start hybrid server |
85
- | Scanned / image-based PDF | Hybrid + OCR | + `--force-ocr` on server |
86
- | Charts / figures needing text description | Hybrid + picture description | + `--enrich-picture-description` on server |
87
- | Mathematical formulas (LaTeX) | Hybrid + formula | + `--enrich-formula` on server |
88
-
89
- <br/>
90
-
91
- ## Output Formats
92
-
93
- | Format | Use Case |
94
- |--------|----------|
95
- | **JSON** | Structured data with bounding boxes, semantic types |
96
- | **Markdown** | Clean text for LLM context, RAG chunks |
97
- | **HTML** | Web display with styling |
98
- | **Annotated PDF** | Visual debugging — see detected structures ([sample](https://opendataloader.org/demo/samples/01030000000000?view1=annot&view2=json)) |
99
-
100
- <br/>
101
-
102
- ## JSON Output Example
103
-
104
- ```json
105
- {
106
- "type": "heading",
107
- "id": 42,
108
- "level": "Title",
109
- "page number": 1,
110
- "bounding box": [72.0, 700.0, 540.0, 730.0],
111
- "heading level": 1,
112
- "font": "Helvetica-Bold",
113
- "font size": 24.0,
114
- "text color": "[0.0]",
115
- "content": "Introduction"
116
- }
117
- ```
118
-
119
- | Field | Description |
120
- |-------|-------------|
121
- | `type` | Element type: heading, paragraph, table, list, image, caption |
122
- | `id` | Unique identifier for cross-referencing |
123
- | `page number` | 1-indexed page reference |
124
- | `bounding box` | `[left, bottom, right, top]` in PDF points |
125
- | `heading level` | Heading depth (1+) |
126
- | `font`, `font size` | Typography info |
127
- | `content` | Extracted text |
128
-
129
- [Full JSON Schema →](https://opendataloader.org/docs/json-schema)
130
-
131
- <br/>
113
+ | Your Document | Mode | Install | Server Command | Client Command |
114
+ |---------------|------|---------|----------------|----------------|
115
+ | Standard digital PDF | Fast (default) | `pip install opendataloader-pdf` | None needed | `opendataloader-pdf file1.pdf file2.pdf folder/` |
116
+ | Complex or nested tables | **Hybrid** | `pip install "opendataloader-pdf[hybrid]"` | `opendataloader-pdf-hybrid --port 5002` | `opendataloader-pdf --hybrid docling-fast file1.pdf file2.pdf folder/` |
117
+ | Scanned / image-based PDF | Hybrid + OCR | `pip install "opendataloader-pdf[hybrid]"` | `opendataloader-pdf-hybrid --port 5002 --force-ocr` | `opendataloader-pdf --hybrid docling-fast file1.pdf file2.pdf folder/` |
118
+ | Non-English scanned PDF | Hybrid + OCR | `pip install "opendataloader-pdf[hybrid]"` | `opendataloader-pdf-hybrid --port 5002 --force-ocr --ocr-lang "ko,en"` | `opendataloader-pdf --hybrid docling-fast file1.pdf file2.pdf folder/` |
119
+ | Mathematical formulas | Hybrid + formula | `pip install "opendataloader-pdf[hybrid]"` | `opendataloader-pdf-hybrid --enrich-formula` | `opendataloader-pdf --hybrid docling-fast --hybrid-mode full file1.pdf file2.pdf folder/` |
120
+ | Charts needing description | Hybrid + picture | `pip install "opendataloader-pdf[hybrid]"` | `opendataloader-pdf-hybrid --enrich-picture-description` | `opendataloader-pdf --hybrid docling-fast --hybrid-mode full file1.pdf file2.pdf folder/` |
121
+ | Untagged PDFs needing accessibility | Auto-tagging → Tagged PDF | Coming Q2 2026 | — | — |
132
122
 
133
123
  ## Quick Start
134
124
 
135
- - [Python](https://opendataloader.org/docs/quick-start-python)
136
- - [Node.js / TypeScript](https://opendataloader.org/docs/quick-start-nodejs)
137
- - [Java](https://opendataloader.org/docs/quick-start-java)
138
-
139
- <br/>
125
+ ### Python
140
126
 
141
- ## Advanced Options
127
+ ```bash
128
+ pip install -U opendataloader-pdf
129
+ ```
142
130
 
143
131
  ```python
132
+ import opendataloader_pdf
133
+
144
134
  opendataloader_pdf.convert(
145
- input_path="document.pdf",
135
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
146
136
  output_dir="output/",
147
- format="json,markdown,pdf",
148
-
149
- # Image output mode: "off", "embedded" (Base64), or "external" (default)
150
- image_output="embedded",
151
-
152
- # Image format: "png" or "jpeg"
153
- image_format="jpeg",
154
-
155
- # Tagged PDF
156
- use_struct_tree=True, # Use native PDF structure
137
+ format="markdown,json"
157
138
  )
158
139
  ```
159
140
 
160
- [Full CLI Options Reference →](https://opendataloader.org/docs/cli-options-reference)
161
-
162
- <br/>
163
-
164
- ## AI Safety
165
-
166
- PDFs can contain hidden prompt injection attacks. OpenDataLoader automatically filters:
167
-
168
- - Hidden text (transparent, zero-size)
169
- - Off-page content
170
- - Suspicious invisible layers
171
-
172
- This is **enabled by default**. [Learn more →](https://opendataloader.org/docs/ai-safety)
173
-
174
- <br/>
175
-
176
- ## Tagged PDF Support
177
-
178
- **Why it matters:** The [European Accessibility Act (EAA)](https://commission.europa.eu/strategy-and-policy/policies/justice-and-fundamental-rights/disability/union-equality-strategy-rights-persons-disabilities-2021-2030/european-accessibility-act_en) took effect June 28, 2025, requiring accessible digital documents across the EU. This means more PDFs will be properly tagged with semantic structure.
141
+ ### Node.js
179
142
 
180
- **OpenDataLoader leverages this:**
143
+ ```bash
144
+ npm install @opendataloader/pdf
145
+ ```
181
146
 
182
- - When a PDF has structure tags, we extract the **exact layout** the author intended
183
- - Headings, lists, tables, reading order — all preserved from the source
184
- - No guessing, no heuristics needed — **pixel-perfect semantic extraction**
147
+ ```typescript
148
+ import { convert } from '@opendataloader/pdf';
185
149
 
186
- ```python
187
- opendataloader_pdf.convert(
188
- input_path="accessible_document.pdf",
189
- use_struct_tree=True # Use native PDF structure tags
190
- )
150
+ await convert(['file1.pdf', 'file2.pdf', 'folder/'], {
151
+ outputDir: 'output/',
152
+ format: 'markdown,json'
153
+ });
191
154
  ```
192
155
 
193
- Most PDF parsers ignore structure tags entirely. We're one of the few that fully support them.
156
+ ### Java
194
157
 
195
- [Learn more about Tagged PDF →](https://opendataloader.org/docs/tagged-pdf)
196
-
197
- <br/>
158
+ ```xml
159
+ <dependency>
160
+ <groupId>org.opendataloader</groupId>
161
+ <artifactId>opendataloader-pdf-core</artifactId>
162
+ </dependency>
163
+ ```
198
164
 
199
- ## Hybrid Mode
165
+ [Python Quick Start](https://opendataloader.org/docs/quick-start-python) | [Node.js Quick Start](https://opendataloader.org/docs/quick-start-nodejs) | [Java Quick Start](https://opendataloader.org/docs/quick-start-java)
200
166
 
201
- For documents with complex tables or OCR needs, enable hybrid mode to route challenging pages to an AI backend while keeping simple pages fast and local.
167
+ ## Hybrid Mode: #1 Accuracy for Complex PDFs
202
168
 
203
- **Results**: Table accuracy jumps from 0.49 0.93 (+90%) with acceptable speed trade-off.
169
+ Hybrid mode combines fast local Java processing with AI backends. Simple pages stay local (0.05s); complex pages route to AI for +90% table accuracy.
204
170
 
205
171
  ```bash
206
172
  pip install -U "opendataloader-pdf[hybrid]"
207
173
  ```
208
174
 
209
- Terminal 1: Start the backend server
175
+ **Terminal 1** Start the backend server:
210
176
 
211
177
  ```bash
212
178
  opendataloader-pdf-hybrid --port 5002
213
179
  ```
214
180
 
215
- Terminal 2: Process PDFs with hybrid mode
181
+ **Terminal 2** Process PDFs:
216
182
 
217
183
  ```bash
218
- opendataloader-pdf --hybrid docling-fast input.pdf
184
+ opendataloader-pdf --hybrid docling-fast file1.pdf file2.pdf folder/
219
185
  ```
220
186
 
221
- Or use in Python:
187
+ **Python:**
222
188
 
223
189
  ```python
224
190
  opendataloader_pdf.convert(
225
- input_path="complex_tables.pdf",
191
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
226
192
  output_dir="output/",
227
- hybrid="docling-fast" # Routes complex pages to AI backend
193
+ hybrid="docling-fast"
228
194
  )
229
195
  ```
230
196
 
231
- - **Local-first**: Simple pages processed locally, complex pages routed to backend
232
- - **Fallback**: If backend unavailable, gracefully falls back to local processing
233
- - **Privacy**: Run the backend locally for 100% on-premise
197
+ ### OCR for Scanned PDFs
198
+
199
+ Start the backend with `--force-ocr` for image-based PDFs with no selectable text:
200
+
201
+ ```bash
202
+ opendataloader-pdf-hybrid --port 5002 --force-ocr
203
+ ```
204
+
205
+ For non-English documents, specify the language:
206
+
207
+ ```bash
208
+ opendataloader-pdf-hybrid --port 5002 --force-ocr --ocr-lang "ko,en"
209
+ ```
210
+
211
+ Supported languages: `en`, `ko`, `ja`, `ch_sim`, `ch_tra`, `de`, `fr`, `ar`, and more.
234
212
 
235
213
  ### Formula Extraction (LaTeX)
236
214
 
237
- For PDFs containing mathematical formulas, enable formula enrichment to extract LaTeX representations:
215
+ Extract mathematical formulas as LaTeX from scientific PDFs:
238
216
 
239
217
  ```bash
240
- # Start backend with formula enrichment
218
+ # Server: enable formula enrichment
241
219
  opendataloader-pdf-hybrid --enrich-formula
242
220
 
243
- # Process with full backend mode (required for formula extraction)
244
- opendataloader-pdf --hybrid docling-fast --hybrid-mode full input.pdf
221
+ # Client: must use full mode for enrichments
222
+ opendataloader-pdf --hybrid docling-fast --hybrid-mode full file1.pdf file2.pdf folder/
245
223
  ```
246
224
 
247
225
  Output in JSON:
@@ -254,95 +232,111 @@ Output in JSON:
254
232
  }
255
233
  ```
256
234
 
257
- Output in Markdown:
258
- ```markdown
259
- $$
260
- \frac{f(x+h) - f(x)}{h}
261
- $$
262
- ```
235
+ > **Note**: Formula and picture description enrichments require `--hybrid-mode full` on the client side.
263
236
 
264
- Output in HTML (MathJax/KaTeX compatible):
265
- ```html
266
- <div class="math-display">\[\frac{f(x+h) - f(x)}{h}\]</div>
267
- ```
237
+ ### Chart & Image Description
268
238
 
269
- > **Note**: Formula extraction requires `--hybrid-mode full` to route all pages to the backend where the formula enrichment model runs.
270
-
271
- ### Scanned PDFs (OCR)
272
-
273
- For image-based or scanned PDFs that contain no selectable text, enable OCR on the hybrid backend:
239
+ Generate AI descriptions for charts and images useful for RAG search and accessibility alt text:
274
240
 
275
241
  ```bash
276
- # Start backend with OCR enabled
277
- opendataloader-pdf-hybrid --port 5002 --force-ocr
242
+ # Server
243
+ opendataloader-pdf-hybrid --enrich-picture-description
278
244
 
279
- # Process scanned PDF
280
- opendataloader-pdf --hybrid docling-fast input-scanned.pdf
245
+ # Client (must use full mode)
246
+ opendataloader-pdf --hybrid docling-fast --hybrid-mode full file1.pdf file2.pdf folder/
281
247
  ```
282
248
 
283
- For non-English documents, specify the OCR language:
284
-
285
- ```bash
286
- opendataloader-pdf-hybrid --port 5002 --force-ocr --ocr-lang "ko,en"
249
+ Output in JSON:
250
+ ```json
251
+ {
252
+ "type": "picture",
253
+ "page number": 1,
254
+ "bounding box": [72.0, 400.0, 540.0, 650.0],
255
+ "description": "A bar chart showing waste generation by region from 2016 to 2030..."
256
+ }
287
257
  ```
288
258
 
289
- > **Note**: Standard digital PDFs do not need `--force-ocr`. Use it only for scanned or image-based PDFs.
259
+ > Uses SmolVLM (256M), a lightweight vision model. Custom prompts supported via `--picture-description-prompt`.
290
260
 
291
- > **Timeout**: OCR is CPU-intensive. For large scanned documents, increase the timeout: `opendataloader-pdf --hybrid docling-fast --hybrid-timeout 120000 input-scanned.pdf`
261
+ ### Hancom Data Loader Integration Coming Soon
292
262
 
293
- ### Picture / Chart Description (Alt Text)
263
+ Enterprise-grade AI document analysis via [Hancom Data Loader](https://sdk.hancom.com/services/1) customer-customized models trained on your domain-specific documents. 30+ element types (tables, charts, formulas, captions, footnotes, etc.), VLM-based image/chart understanding, complex table extraction (merged cells, nested tables), and native HWP/HWPX support. Supports PDF, DOCX, XLSX, PPTX, HWP, PNG, JPG. [Live demo](https://livedemo.sdk.hancom.com/dataloader)
294
264
 
295
- Generate AI-powered descriptions for images and charts in your PDFs. Useful for accessibility (alt text) and making visual content searchable in RAG pipelines.
265
+ [Hybrid Mode Guide](https://opendataloader.org/docs/hybrid-mode)
296
266
 
297
- ```bash
298
- # Start backend with picture description
299
- opendataloader-pdf-hybrid --enrich-picture-description
267
+ ## Output Formats
300
268
 
301
- # Process with full backend mode (required for picture description)
302
- opendataloader-pdf --hybrid docling-fast --hybrid-mode full input.pdf
303
- ```
269
+ | Format | Use Case |
270
+ |--------|----------|
271
+ | **JSON** | Structured data with bounding boxes, semantic types |
272
+ | **Markdown** | Clean text for LLM context, RAG chunks |
273
+ | **HTML** | Web display with styling |
274
+ | **Annotated PDF** | Visual debugging — see detected structures ([sample](https://opendataloader.org/demo/samples/01030000000000)) |
275
+ | **Text** | Plain text extraction |
276
+
277
+ Combine formats: `format="json,markdown"`
278
+
279
+ ### JSON Output Example
304
280
 
305
- Output in JSON:
306
281
  ```json
307
282
  {
308
- "type": "picture",
283
+ "type": "heading",
284
+ "id": 42,
285
+ "level": "Title",
309
286
  "page number": 1,
310
- "bounding box": [72.0, 400.0, 540.0, 650.0],
311
- "description": "A bar chart showing waste generation by region from 2016 to 2030..."
287
+ "bounding box": [72.0, 700.0, 540.0, 730.0],
288
+ "heading level": 1,
289
+ "font": "Helvetica-Bold",
290
+ "font size": 24.0,
291
+ "text color": "[0.0]",
292
+ "content": "Introduction"
312
293
  }
313
294
  ```
314
295
 
315
- Output in Markdown:
316
- ```markdown
317
- ![image 1](document_images/imageFile1.png)
296
+ | Field | Description |
297
+ |-------|-------------|
298
+ | `type` | Element type: heading, paragraph, table, list, image, caption, formula |
299
+ | `id` | Unique identifier for cross-referencing |
300
+ | `page number` | 1-indexed page reference |
301
+ | `bounding box` | `[left, bottom, right, top]` in PDF points (72pt = 1 inch) |
302
+ | `heading level` | Heading depth (1+) |
303
+ | `content` | Extracted text |
318
304
 
319
- *A bar chart showing waste generation by region from 2016 to 2030...*
320
- ```
305
+ [Full JSON Schema](https://opendataloader.org/docs/json-schema)
321
306
 
322
- Output in HTML:
323
- ```html
324
- <figure>
325
- <img src="document_images/imageFile1.png" alt="figure1">
326
- <figcaption>A bar chart showing waste generation by region from 2016 to 2030...</figcaption>
327
- </figure>
328
- ```
307
+ ## Advanced Features
329
308
 
330
- You can also customize the prompt for better results with specific document types:
309
+ ### Tagged PDF Support
331
310
 
332
- ```bash
333
- opendataloader-pdf-hybrid --enrich-picture-description \
334
- --picture-description-prompt "Describe this scientific figure in detail."
311
+ When a PDF has structure tags, OpenDataLoader extracts the **exact layout** the author intended — no guessing, no heuristics. Headings, lists, tables, and reading order are preserved from the source.
312
+
313
+ ```python
314
+ opendataloader_pdf.convert(
315
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
316
+ output_dir="output/",
317
+ use_struct_tree=True # Use native PDF structure tags
318
+ )
335
319
  ```
336
320
 
337
- > **Note**: Picture description uses SmolVLM (256M), a lightweight vision model. Results are suitable for general context but may not capture precise data values from complex charts.
321
+ Most PDF parsers ignore structure tags entirely. [Learn more](https://opendataloader.org/docs/tagged-pdf)
338
322
 
339
- [Hybrid Mode Guide →](https://opendataloader.org/docs/hybrid-mode)
323
+ ### AI Safety: Prompt Injection Protection
340
324
 
341
- <br/>
325
+ PDFs can contain hidden prompt injection attacks. OpenDataLoader automatically filters:
342
326
 
343
- ## LangChain Integration
327
+ - Hidden text (transparent, zero-size fonts)
328
+ - Off-page content
329
+ - Suspicious invisible layers
344
330
 
345
- OpenDataLoader PDF has an official LangChain integration for seamless RAG pipeline development.
331
+ To sanitize sensitive data (emails, URLs, phone numbers placeholders), enable it explicitly:
332
+
333
+ ```bash
334
+ opendataloader-pdf input.pdf --sanitize
335
+ ```
336
+
337
+ [AI Safety Guide](https://opendataloader.org/docs/ai-safety)
338
+
339
+ ### LangChain Integration
346
340
 
347
341
  ```bash
348
342
  pip install -U langchain-opendataloader-pdf
@@ -352,164 +346,226 @@ pip install -U langchain-opendataloader-pdf
352
346
  from langchain_opendataloader_pdf import OpenDataLoaderPDFLoader
353
347
 
354
348
  loader = OpenDataLoaderPDFLoader(
355
- file_path=["document.pdf"],
349
+ file_path=["file1.pdf", "file2.pdf", "folder/"],
356
350
  format="text"
357
351
  )
358
352
  documents = loader.load()
353
+ ```
359
354
 
360
- # Use with any LangChain pipeline
361
- for doc in documents:
362
- print(doc.page_content[:100])
355
+ [LangChain Docs](https://docs.langchain.com/oss/python/integrations/document_loaders/opendataloader_pdf) | [GitHub](https://github.com/opendataloader-project/langchain-opendataloader-pdf) | [PyPI](https://pypi.org/project/langchain-opendataloader-pdf/)
356
+
357
+ ### Advanced Options
358
+
359
+ ```python
360
+ opendataloader_pdf.convert(
361
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
362
+ output_dir="output/",
363
+ format="json,markdown,pdf",
364
+ image_output="embedded", # "off", "embedded" (Base64), or "external" (default)
365
+ image_format="jpeg", # "png" or "jpeg"
366
+ use_struct_tree=True, # Use native PDF structure
367
+ )
363
368
  ```
364
369
 
365
- - [LangChain Documentation](https://docs.langchain.com/oss/python/integrations/document_loaders/opendataloader_pdf)
366
- - [GitHub Repository](https://github.com/opendataloader-project/langchain-opendataloader-pdf)
367
- - [PyPI Package](https://pypi.org/project/langchain-opendataloader-pdf/)
370
+ [Full CLI Options Reference](https://opendataloader.org/docs/cli-options-reference)
368
371
 
369
- <br/>
372
+ ## PDF Accessibility & PDF/UA Conversion
370
373
 
371
- ## Benchmarks
374
+ **Problem**: Millions of existing PDFs lack structure tags, failing accessibility regulations (EAA, ADA/Section 508, Korea Digital Inclusion Act). Manual remediation costs $50–200 per document and doesn't scale.
372
375
 
373
- We continuously benchmark against real-world documents.
376
+ **OpenDataLoader's approach**: Built in collaboration with [PDF Association](https://pdfa.org) and [Dual Lab](https://duallab.com) (developers of [veraPDF](https://verapdf.org), the industry-reference open-source PDF/A and PDF/UA validator). Auto-tagging follows the [Well-Tagged PDF specification](https://pdfa.org/resource/well-tagged-pdf/) and is validated programmatically using veraPDF — automated conformance checks against PDF accessibility standards, not manual review. No existing open-source tool generates Tagged PDFs end-to-end — most rely on proprietary SDKs for the tag-writing step. OpenDataLoader does it all under Apache 2.0. ([collaboration details](https://opendataloader.org/docs/tagged-pdf-collaboration))
374
377
 
375
- [View full benchmark results →](https://github.com/opendataloader-project/opendataloader-bench)
378
+ | Regulation | Deadline | Requirement |
379
+ |------------|----------|-------------|
380
+ | **European Accessibility Act (EAA)** | June 28, 2025 | Accessible digital products across the EU |
381
+ | **ADA & Section 508** | In effect | U.S. federal agencies and public accommodations |
382
+ | **Digital Inclusion Act** | In effect | South Korea digital service accessibility |
376
383
 
377
- ### Quick Comparison
384
+ ### Standards & Validation
378
385
 
379
- | Engine | Overall | Reading Order | Table | Heading | Speed (s/page) |
380
- |-----------------------------|----------|---------------|----------|----------|----------------|
381
- | **opendataloader** | 0.72 | 0.91 | 0.49 | 0.76 | **0.05** |
382
- | **opendataloader [hybrid]** | **0.90** | **0.94** | **0.93** | **0.83** | 0.43 |
383
- | docling | 0.86 | 0.90 | 0.89 | 0.80 | 0.73 |
384
- | marker | 0.83 | 0.89 | 0.81 | 0.80 | 53.93 |
385
- | mineru | 0.82 | 0.86 | 0.87 | 0.74 | 5.96 |
386
- | pymupdf4llm | 0.57 | 0.89 | 0.40 | 0.41 | 0.09 |
387
- | markitdown | 0.29 | 0.88 | 0.00 | 0.00 | **0.04** |
386
+ | Aspect | Detail |
387
+ |--------|--------|
388
+ | **Specification** | [Well-Tagged PDF](https://pdfa.org/resource/well-tagged-pdf/) by PDF Association |
389
+ | **Validation** | [veraPDF](https://verapdf.org) industry-reference open-source PDF/A & PDF/UA validator |
390
+ | **Collaboration** | PDF Association + [Dual Lab](https://duallab.com) (veraPDF developers) co-develop tagging and validation |
391
+ | **License** | Auto-tagging → Tagged PDF: Apache 2.0 (free). PDF/UA export: Enterprise |
388
392
 
389
- > Scores are normalized to [0, 1]. Higher is better for accuracy metrics; lower is better for speed. **Bold** indicates best performance.
393
+ ### Accessibility Pipeline
390
394
 
391
- ### Visual Comparison
395
+ | Step | Feature | Status | Tier |
396
+ |------|---------|--------|------|
397
+ | 1. **Audit** | Read existing PDF tags, detect untagged PDFs | Shipped | Free |
398
+ | 2. **Auto-tag → Tagged PDF** | Generate structure tags for untagged PDFs | Coming Q2 2026 | Free (Apache 2.0) |
399
+ | 3. **Export PDF/UA** | Convert to PDF/UA-1 or PDF/UA-2 compliant files | 💼 Available | Enterprise |
400
+ | 4. **Visual editing** | Accessibility studio — review and fix tags | 💼 Available | Enterprise |
392
401
 
393
- [![Benchmark](https://github.com/opendataloader-project/opendataloader-bench/raw/refs/heads/main/charts/benchmark.png)](https://github.com/opendataloader-project/opendataloader-bench)
402
+ > **💼 Enterprise features** are available on request. [Contact us](https://opendataloader.org/contact) to get started.
394
403
 
404
+ ### Auto-Tagging Preview (Coming Q2 2026)
395
405
 
396
- <br/>
406
+ ```python
407
+ # API shape preview — available Q2 2026
408
+ opendataloader_pdf.convert(
409
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
410
+ output_dir="output/",
411
+ auto_tag=True # Generate structure tags for untagged PDFs
412
+ )
413
+ ```
397
414
 
398
- ## Roadmap
415
+ ### End-to-End Compliance Workflow
399
416
 
400
- See our [upcoming features and priorities →](https://opendataloader.org/docs/upcoming-roadmap)
417
+ ```
418
+ Existing PDFs (untagged)
419
+
420
+
421
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
422
+ │ 1. Audit │───>│ 2. Remediate │───>│ 3. Export │
423
+ │ (check tags) │ │ (auto-tag) │ │ (PDF/UA) │
424
+ └─────────────────┘ └─────────────────┘ └─────────────────┘
425
+ │ │ │
426
+ ▼ ▼ ▼
427
+ use_struct_tree auto_tag PDF/UA export
428
+ (Available now) (Q2 2026, Apache 2.0) (Enterprise)
429
+
430
+
431
+ PDF/UA-1 or PDF/UA-2
432
+ compliant output
433
+ ```
401
434
 
402
- <br/>
435
+ [PDF Accessibility Guide](https://opendataloader.org/docs/accessibility-compliance)
403
436
 
404
- ## Documentation
437
+ ## Roadmap
405
438
 
406
- - [Quick Start Guide](https://opendataloader.org/docs/quick-start-python)
407
- - [JSON Schema Reference](https://opendataloader.org/docs/json-schema)
408
- - [CLI Options](https://opendataloader.org/docs/cli-options-reference)
409
- - [Tagged PDF Support](https://opendataloader.org/docs/tagged-pdf)
410
- - [AI Safety Features](https://opendataloader.org/docs/ai-safety)
439
+ | Feature | Timeline | Tier |
440
+ |---------|----------|------|
441
+ | **Auto-tagging Tagged PDF** — Generate Tagged PDFs from untagged PDFs | Q2 2026 | Free |
442
+ | **[Hancom Data Loader](https://sdk.hancom.com/services/1)** — Enterprise AI document analysis, customer-customized models, VLM-based chart/image understanding | Q2-Q3 2026 | Free |
443
+ | **Structure validation** — Verify PDF tag trees | Q2 2026 | Planned |
411
444
 
412
- <br/>
445
+ [Full Roadmap](https://opendataloader.org/docs/upcoming-roadmap)
413
446
 
414
447
  ## Frequently Asked Questions
415
448
 
416
449
  ### What is the best PDF parser for RAG?
417
450
 
418
- For RAG pipelines, you need a parser that preserves document structure, maintains correct reading order, and provides element coordinates for citations. OpenDataLoader is designed specifically for this use case — it outputs structured JSON with bounding boxes, handles multi-column layouts correctly with XY-Cut++, and runs locally without GPU requirements.
451
+ For RAG pipelines, you need a parser that preserves document structure, maintains correct reading order, and provides element coordinates for citations. OpenDataLoader is designed specifically for this — it outputs structured JSON with bounding boxes, handles multi-column layouts with XY-Cut++, and runs locally without GPU. In hybrid mode, it ranks #1 overall (0.90) in benchmarks.
452
+
453
+ ### What is the best open-source PDF parser?
454
+
455
+ OpenDataLoader PDF is the only open-source parser that combines: rule-based deterministic extraction (no GPU), bounding boxes for every element, XY-Cut++ reading order, built-in AI safety filters, native Tagged PDF support, and hybrid AI mode for complex documents. It ranks #1 in overall accuracy (0.90) while running locally on CPU.
419
456
 
420
457
  ### How do I extract tables from PDF for LLM?
421
458
 
422
- OpenDataLoader detects tables using both border analysis and text clustering, preserving row/column structure in the output. Tables are exported as structured data in JSON or as formatted Markdown tables, ready for LLM consumption.
459
+ OpenDataLoader detects tables using border analysis and text clustering, preserving row/column structure. For complex tables, enable hybrid mode for +90% accuracy improvement (0.49 to 0.93 TEDS score):
460
+
461
+ ```python
462
+ opendataloader_pdf.convert(
463
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
464
+ output_dir="output/",
465
+ format="json",
466
+ hybrid="docling-fast" # For complex tables
467
+ )
468
+ ```
469
+
470
+ ### How does it compare to docling, marker, or pymupdf4llm?
471
+
472
+ OpenDataLoader [hybrid] ranks #1 overall (0.90) across reading order, table, and heading accuracy. Key differences: docling (0.86) is strong but lacks bounding boxes and AI safety filters. marker (0.83) requires GPU and is 100x slower (53.93s/page). pymupdf4llm (0.57) is fast but has poor table (0.40) and heading (0.41) accuracy. OpenDataLoader is the only parser that combines deterministic local extraction, bounding boxes for every element, and built-in prompt injection protection. See [full benchmark](https://github.com/opendataloader-project/opendataloader-bench).
423
473
 
424
474
  ### Can I use this without sending data to the cloud?
425
475
 
426
- Yes. OpenDataLoader runs 100% locally on your machine. No API calls, no data transmission — your documents never leave your environment. This makes it ideal for sensitive documents in legal, healthcare, and financial industries.
476
+ Yes. OpenDataLoader runs 100% locally. No API calls, no data transmission — your documents never leave your environment. The hybrid mode backend also runs locally on your machine. Ideal for legal, healthcare, and financial documents.
427
477
 
428
- ### What makes OpenDataLoader unique?
478
+ ### Does it support OCR for scanned PDFs?
429
479
 
430
- OpenDataLoader takes a different approach from many PDF parsers:
480
+ Yes, via hybrid mode. Install with `pip install "opendataloader-pdf[hybrid]"`, start the backend with `--force-ocr`, then process as usual. Supports multiple languages including Korean, Japanese, Chinese, Arabic, and more via `--ocr-lang`.
431
481
 
432
- - **Rule-based extraction** Deterministic output without GPU requirements
433
- - **Bounding boxes for all elements** — Essential for citation systems
434
- - **XY-Cut++ reading order** — Handles multi-column layouts correctly
435
- - **Built-in AI safety filters** — Protects against prompt injection
436
- - **Native Tagged PDF support** — Leverages accessibility metadata
482
+ ### Does it work with Korean, Japanese, or Chinese documents?
437
483
 
438
- This means: consistent output (same input = same output), no GPU required, faster processing, and no model hallucinations.
484
+ Yes. For digital PDFs, text extraction works out of the box. For scanned PDFs, use hybrid mode with `--force-ocr --ocr-lang "ko,en"` (or `ja`, `ch_sim`, `ch_tra`). Coming soon: [Hancom Data Loader](https://sdk.hancom.com/services/1) integration — enterprise-grade AI document analysis with customer-customized models optimized for your specific document types and workflows.
439
485
 
440
- ### How do I get better accuracy for complex tables?
486
+ ### How fast is it?
441
487
 
442
- Enable hybrid mode with `pip install -U "opendataloader-pdf[hybrid]"`. This routes pages with complex tables to an AI backend (like docling-serve) while keeping simple pages fast and local. Table accuracy improves from 0.49 to 0.93 matching or exceeding dedicated AI parsers while remaining faster and more cost-effective.
488
+ Local mode processes 100+ pages per second on CPU (0.05s/page). Hybrid mode is 0.43s/page with significantly higher accuracy for complex documents. No GPU required. Benchmarked on Apple M4. [Full benchmark details](https://github.com/opendataloader-project/opendataloader-bench)
443
489
 
444
- ### Does it work with scanned PDFs?
490
+ ### Does it handle multi-column layouts?
445
491
 
446
- Yes, via hybrid mode with OCR. Start the backend server with `--force-ocr`:
492
+ Yes. OpenDataLoader uses XY-Cut++ reading order analysis to correctly sequence text across multi-column pages, sidebars, and mixed layouts. This works in both local and hybrid modes without any configuration.
447
493
 
448
- Terminal 1: Start backend with OCR enabled
494
+ ### What is hybrid mode?
449
495
 
450
- ```bash
451
- opendataloader-pdf-hybrid --port 5002 --force-ocr
452
- ```
496
+ Hybrid mode combines fast local Java processing with an AI backend. Simple pages are processed locally (0.05s/page); complex pages (tables, scanned content, formulas, charts) are automatically routed to the AI backend for higher accuracy. The backend runs locally on your machine — no cloud required. See [Which Mode Should I Use?](#which-mode-should-i-use) and [Hybrid Mode Guide](https://opendataloader.org/docs/hybrid-mode).
453
497
 
454
- Terminal 2: Process scanned PDF
498
+ ### Does it work with LangChain?
455
499
 
456
- ```bash
457
- opendataloader-pdf --hybrid docling-fast input-scanned.pdf
458
- ```
500
+ Yes. Install `langchain-opendataloader-pdf` for an official LangChain document loader integration. See [LangChain docs](https://docs.langchain.com/oss/python/integrations/document_loaders/opendataloader_pdf).
459
501
 
460
- Or use in Python:
502
+ ### How do I chunk PDFs for RAG?
503
+
504
+ OpenDataLoader outputs structured Markdown with headings, tables, and lists preserved — ideal input for semantic chunking. Each element in JSON output includes `type`, `heading level`, and `page number`, so you can split by section or page boundary. For most RAG pipelines: parse with `format="markdown"` for text chunks, or `format="json"` when you need element-level control. Pair with LangChain's `RecursiveCharacterTextSplitter` or your own heading-based splitter for best results.
505
+
506
+ ### How do I cite PDF sources in RAG answers?
507
+
508
+ Every element in JSON output includes a `bounding box` (`[left, bottom, right, top]` in PDF points) and `page number`. When your RAG pipeline returns an answer, map the source chunk back to its bounding box to highlight the exact location in the original PDF. This enables "click to source" UX — users see which paragraph, table, or figure the answer came from. No other open-source parser provides bounding boxes for every element by default.
509
+
510
+ ### How do I convert PDF to Markdown for LLM?
461
511
 
462
512
  ```python
513
+ import opendataloader_pdf
514
+
463
515
  opendataloader_pdf.convert(
464
- input_path="scanned.pdf",
516
+ input_path=["file1.pdf", "file2.pdf", "folder/"],
465
517
  output_dir="output/",
466
- hybrid="docling-fast"
518
+ format="markdown"
467
519
  )
468
520
  ```
469
521
 
470
- (Start the backend with `--force-ocr` before running.)
522
+ OpenDataLoader preserves heading hierarchy, table structure, and reading order in the Markdown output. For complex documents with borderless tables or scanned pages, use hybrid mode (`hybrid="docling-fast"`) for higher accuracy. The output is clean enough to feed directly into LLM context windows or RAG chunking pipelines.
471
523
 
472
- For non-English documents, add `--ocr-lang`:
524
+ ### Is there an automated PDF accessibility remediation tool?
473
525
 
474
- ```bash
475
- opendataloader-pdf-hybrid --port 5002 --ocr-lang "ko,en"
476
- ```
526
+ Yes. OpenDataLoader is the first open-source tool that automates PDF accessibility end-to-end. Built in collaboration with [PDF Association](https://pdfa.org) and [Dual Lab](https://duallab.com) (veraPDF developers), auto-tagging follows the Well-Tagged PDF specification and is validated programmatically using veraPDF. The layout analysis engine detects document structure (headings, tables, lists, reading order) and generates accessibility tags automatically. Auto-tagging (Q2 2026) converts untagged PDFs into Tagged PDFs under Apache 2.0 — no proprietary SDK dependency. For organizations needing full PDF/UA compliance, enterprise add-ons provide PDF/UA export and a visual tag editor. This replaces manual remediation workflows that typically cost $50–200+ per document.
477
527
 
478
- ### Does it work with images and charts?
528
+ ### Is this really the first open-source PDF auto-tagging tool?
479
529
 
480
- Two levels of support:
530
+ Yes. Existing tools either depend on proprietary SDKs for writing structure tags, only output non-PDF formats (e.g., Docling outputs Markdown/JSON but cannot produce Tagged PDFs), or require manual intervention. OpenDataLoader is the first to do layout analysis → tag generation → Tagged PDF output entirely under an open-source license (Apache 2.0), with no proprietary dependency. Auto-tagging follows the PDF Association's Well-Tagged PDF specification and is validated using veraPDF, the industry-reference open-source PDF/A and PDF/UA validator.
481
531
 
482
- 1. **Image extraction** (all modes): Embedded images are extracted to the output folder with bounding boxes. Use `--image-output external` (the default):
532
+ ### How do I convert existing PDFs to PDF/UA?
483
533
 
484
- ```python
485
- opendataloader_pdf.convert(
486
- input_path="document.pdf",
487
- output_dir="output/",
488
- image_output="external" # Saves images as files with bounding boxes in JSON
489
- )
490
- ```
534
+ OpenDataLoader provides an end-to-end pipeline: audit existing PDFs for tags (`use_struct_tree=True`), auto-tag untagged PDFs into Tagged PDFs (Q2 2026, free under Apache 2.0), and export as PDF/UA-1 or PDF/UA-2 (enterprise add-on). Auto-tagging follows the PDF Association's Well-Tagged PDF specification and is validated using veraPDF. Auto-tagging generates the Tagged PDF; PDF/UA export is the final step. [Contact us](https://opendataloader.org/contact) for enterprise integration.
491
535
 
492
- 2. **AI chart descriptions** (hybrid only): Generate natural language descriptions of charts and figures for RAG search:
536
+ ### How do I make my PDFs accessible for EAA compliance?
493
537
 
494
- ```bash
495
- # Start backend with picture description enabled
496
- opendataloader-pdf-hybrid --port 5002 --enrich-picture-description
538
+ The European Accessibility Act requires accessible digital products by June 28, 2025. OpenDataLoader supports the full remediation workflow: audit → auto-tag → Tagged PDF → PDF/UA export. Auto-tagging follows the PDF Association's Well-Tagged PDF specification and is validated using veraPDF, ensuring standards-compliant output. Auto-tagging to Tagged PDF will be open-sourced under Apache 2.0 (Q2 2026). PDF/UA export and accessibility studio are enterprise add-ons. See our [Accessibility Guide](https://opendataloader.org/docs/accessibility-compliance).
497
539
 
498
- # Process with full backend mode (required for picture description)
499
- opendataloader-pdf --hybrid docling-fast --hybrid-mode full input.pdf
500
- ```
540
+ ### Is OpenDataLoader PDF free?
541
+
542
+ The core library is **open-source under Apache 2.0** — free for commercial use. This includes all extraction features (text, tables, images, OCR, formulas, charts via hybrid mode), AI safety filters, Tagged PDF support, and auto-tagging to Tagged PDF (Q2 2026). We are committed to keeping the core accessibility pipeline (layout analysis → auto-tagging → Tagged PDF) free and open-source. Enterprise add-ons (PDF/UA export, accessibility studio) are available for organizations needing end-to-end regulatory compliance.
543
+
544
+ ### Why did the license change from MPL 2.0 to Apache 2.0?
501
545
 
502
- <br/>
546
+ MPL 2.0 requires file-level copyleft, which often triggers legal review before enterprise adoption. Apache 2.0 is fully permissive — no copyleft obligations, easier to integrate into commercial projects. If you are using a pre-2.0 version, it remains under MPL 2.0 and you can continue using it. Upgrading to 2.0+ means your project follows Apache 2.0 terms, which are strictly more permissive — no additional obligations, no action needed on your side.
547
+
548
+ ## Documentation
549
+
550
+ - [Quick Start (Python)](https://opendataloader.org/docs/quick-start-python)
551
+ - [Quick Start (Node.js)](https://opendataloader.org/docs/quick-start-nodejs)
552
+ - [Quick Start (Java)](https://opendataloader.org/docs/quick-start-java)
553
+ - [JSON Schema Reference](https://opendataloader.org/docs/json-schema)
554
+ - [CLI Options](https://opendataloader.org/docs/cli-options-reference)
555
+ - [Hybrid Mode Guide](https://opendataloader.org/docs/hybrid-mode)
556
+ - [Tagged PDF Support](https://opendataloader.org/docs/tagged-pdf)
557
+ - [AI Safety Features](https://opendataloader.org/docs/ai-safety)
558
+ - [PDF Accessibility](https://opendataloader.org/docs/accessibility-compliance)
503
559
 
504
560
  ## Contributing
505
561
 
506
562
  We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
507
563
 
508
- <br/>
509
-
510
564
  ## License
511
565
 
512
- [Mozilla Public License 2.0](LICENSE)
566
+ [Apache License 2.0](LICENSE)
567
+
568
+ > **Note:** Versions prior to 2.0 are licensed under the [Mozilla Public License 2.0](https://www.mozilla.org/MPL/2.0/).
513
569
 
514
570
  ---
515
571