Kreuzberg Document Extraction
Kreuzberg is a high-performance document intelligence library with a Rust core and native bindings for Python, Node.js/TypeScript, Ruby, Go, Java, C#, PHP, and Elixir. It extracts text, tables, metadata, and images from 91+ file formats including PDF, Office documents, images (with OCR), HTML, email, archives, and academic formats.
Use this skill when writing code that:
- Extracts text or metadata from documents
- Performs OCR on scanned documents or images
- Batch-processes multiple files
- Configures extraction options (output format, chunking, OCR, language detection)
- Implements custom plugins (post-processors, validators, OCR backends)
If the kreuzberg MCP server is registered in this session, prefer its tools over shelling out to the CLI — they expose the same extraction surface with structured arguments and results.
Installation
Python
pip install kreuzberg
# Optional OCR backends:
pip install kreuzberg[easyocr] # EasyOCR
Node.js
npm install @kreuzberg/node
Rust
# Cargo.toml
[dependencies]
kreuzberg = { version = "4", features = ["tokio-runtime"] }
# features: tokio-runtime (required for sync + batch), pdf, ocr, chunking,
# embeddings, language-detection, keywords-yake, keywords-rake
CLI
brew install kreuzberg-dev/tap/kreuzberg
# or run without a persistent install (the CLI proxy package self-installs the binary):
npx @kreuzberg/kreuzberg-cli --help
uvx --from kreuzberg-cli kreuzberg --help
# or download a prebuilt binary from the latest GitHub release:
# https://github.com/kreuzberg-dev/kreuzberg/releases/latest
# or build from source:
cargo install --git https://github.com/kreuzberg-dev/kreuzberg kreuzberg-cli
Quick Start
Python (Async)
from kreuzberg import extract_file
result = await extract_file("document.pdf")
print(result.content) # extracted text
print(result.metadata) # document metadata
print(result.tables) # extracted tables
Python (Sync)
from kreuzberg import extract_file_sync
result = extract_file_sync("document.pdf")
print(result.content)
Node.js
import { extractFile } from "@kreuzberg/node";
const result = await extractFile("document.pdf");
console.log(result.content);
console.log(result.metadata);
console.log(result.tables);
Node.js (Sync)
import { extractFileSync } from "@kreuzberg/node";
const result = extractFileSync("document.pdf");
Rust (Async)
use kreuzberg::{extract_file, ExtractionConfig};
#[tokio::main]
async fn main() -> kreuzberg::Result<()> {
let config = ExtractionConfig::default();
let result = extract_file("document.pdf", None, &config).await?;
println!("{}", result.content);
Ok(())
}
Rust (Sync) — requires tokio-runtime feature
use kreuzberg::{extract_file_sync, ExtractionConfig};
fn main() -> kreuzberg::Result<()> {
let config = ExtractionConfig::default();
let result = extract_file_sync("document.pdf", None, &config)?;
println!("{}", result.content);
Ok(())
}
CLI
kreuzberg extract document.pdf
kreuzberg extract document.pdf --format json
kreuzberg extract document.pdf --content-format markdown
Configuration
All languages use the same configuration structure with language-appropriate naming conventions.
Python (snake_case)
from kreuzberg import (
ExtractionConfig, OcrConfig, TesseractConfig,
PdfConfig, ChunkingConfig,
)
config = ExtractionConfig(
ocr=OcrConfig(
backend="tesseract",
language="eng",
tesseract_config=TesseractConfig(psm=6, enable_table_detection=True),
),
pdf_options=PdfConfig(passwords=["secret123"]),
chunking=ChunkingConfig(max_chars=1000, max_overlap=200),
output_format="markdown",
)
result = await extract_file("document.pdf", config=config)
Node.js (camelCase)
import { extractFile, type ExtractionConfig } from "@kreuzberg/node";
const config: ExtractionConfig = {
ocr: { backend: "tesseract", language: "eng" },
pdfOptions: { passwords: ["secret123"] },
chunking: { maxChars: 1000, maxOverlap: 200 },
outputFormat: "markdown",
};
const result = await extractFile("document.pdf", null, config);
Rust (snake_case)
use kreuzberg::{ExtractionConfig, OcrConfig, ChunkingConfig, OutputFormat};
let config = ExtractionConfig {
ocr: Some(OcrConfig {
backend: "tesseract".into(),
language: "eng".into(),
..Default::default()
}),
chunking: Some(ChunkingConfig {
max_characters: 1000,
overlap: 200,
..Default::default()
}),
output_format: OutputFormat::Markdown,
..Default::default()
};
let result = extract_file("document.pdf", None, &config).await?;
Config File (TOML)
output_format = "markdown"
[ocr]
backend = "tesseract"
language = "eng"
[chunking]
max_characters = 1000
overlap = 200
[pdf_options]
passwords = ["secret123"]
# CLI: auto-discovers kreuzberg.toml in current/parent directories
kreuzberg extract doc.pdf
# or explicit:
kreuzberg extract doc.pdf --config kreuzberg.toml
kreuzberg extract doc.pdf --config-json '{"ocr":{"backend":"tesseract","language":"deu"}}'
Batch Processing
Python
from kreuzberg import batch_extract_files, batch_extract_files_sync
# Async
results = await batch_extract_files(["doc1.pdf", "doc2.docx", "doc3.xlsx"])
# Sync
results = batch_extract_files_sync(["doc1.pdf", "doc2.docx"])
for result in results:
print(f"{len(result.content)} chars extracted")
Node.js
import { batchExtractFiles } from "@kreuzberg/node";
const results = await batchExtractFiles(["doc1.pdf", "doc2.docx"]);
Rust — requires tokio-runtime feature
use kreuzberg::{batch_extract_file, ExtractionConfig};
let config = ExtractionConfig::default();
let paths = vec!["doc1.pdf", "doc2.docx"];
let results = batch_extract_file(paths, &config).await?;
CLI
kreuzberg batch *.pdf --format json
kreuzberg batch docs/*.docx --content-format markdown
OCR
OCR runs automatically for images and scanned PDFs. Tesseract is the default backend (native binding, no external install required).
Backends
- Tesseract (default): Built-in native binding. All Tesseract languages supported.
- EasyOCR (Python only):
pip install kreuzberg[easyocr]. Pass easyocr_kwargs={"gpu": True}.
- PaddleOCR (Python only): Bundled since 4.8.5, no extra install needed. Pass
paddleocr_kwargs={"use_angle_cls": True}.
- Guten (Node.js only): Built-in OCR backend via
GutenOcrBackend.
Language Codes
config = ExtractionConfig(ocr=OcrConfig(language="eng")) # English
config = ExtractionConfig(ocr=OcrConfig(language="eng+deu")) # Multiple
config = ExtractionConfig(ocr=OcrConfig(language="all")) # All installed
Force OCR
config = ExtractionConfig(force_ocr=True) # OCR even if text is extractable
ExtractionResult Fields
| Field |
Python |
Node.js |
Rust |
Description |
| Text content |
result.content |
result.content |
result.content |
Extracted text (str/String) |
| MIME type |
result.mime_type |
result.mimeType |
result.mime_type |
Input document MIME type |
| Metadata |
result.metadata |
result.metadata |
result.metadata |
Document metadata (dict/object/HashMap) |
| Tables |
result.tables |
result.tables |
result.tables |
Extracted tables with cells + markdown |
| Languages |
result.detected_languages |
result.detectedLanguages |
result.detected_languages |
Detected languages (if enabled) |
| Chunks |
result.chunks |
result.chunks |
result.chunks |
Text chunks (if chunking enabled) |
| Images |
result.images |
result.images |
result.images |
Extracted images (if enabled) |
| Elements |
result.elements |
result.elements |
result.elements |
Semantic elements (if element_based format) |
| Pages |
result.pages |
result.pages |
result.pages |
Per-page content (if page extraction enabled) |
| Keywords |
result.keywords |
result.keywords |
result.keywords |
Extracted keywords (if enabled) |
Error Handling
Python
from kreuzberg import (
extract_file_sync, KreuzbergError, ParsingError,
OCRError, ValidationError, MissingDependencyError,
)
try:
result = extract_file_sync("file.pdf")
except ParsingError as e:
print(f"Failed to parse: {e}")
except OCRError as e:
print(f"OCR failed: {e}")
except ValidationError as e:
print(f"Invalid input: {e}")
except MissingDependencyError as e:
print(f"Missing dependency: {e}")
except KreuzbergError as e:
print(f"Extraction failed: {e}")
Node.js
import {
extractFile,
KreuzbergError,
ParsingError,
OcrError,
ValidationError,
MissingDependencyError,
} from "@kreuzberg/node";
try {
const result = await extractFile("file.pdf");
} catch (e) {
if (e instanceof ParsingError) {
/* ... */
} else if (e instanceof OcrError) {
/* ... */
} else if (e instanceof ValidationError) {
/* ... */
} else if (e instanceof KreuzbergError) {
/* ... */
}
}
Rust
use kreuzberg::{extract_file, ExtractionConfig, KreuzbergError};
let config = ExtractionConfig::default();
match extract_file("file.pdf", None, &config).await {
Ok(result) => println!("{}", result.content),
Err(KreuzbergError::Parsing(msg)) => eprintln!("Parse error: {msg}"),
Err(KreuzbergError::Ocr(msg)) => eprintln!("OCR error: {msg}"),
Err(e) => eprintln!("Error: {e}"),
}
Common Pitfalls
- Python ChunkingConfig fields: Use
max_chars and max_overlap, NOT max_characters or overlap.
- Rust extract_file signature: Third argument is
&ExtractionConfig (a reference), not Option. Use &ExtractionConfig::default() for defaults.
- Rust feature gates:
extract_file_sync, batch_extract_file, and batch_extract_file_sync all require features = ["tokio-runtime"] in Cargo.toml.
- Rust async context:
extract_file is async. Use #[tokio::main] or call from an async context.
- CLI --format vs --content-format:
--format controls CLI output (text/json). --content-format controls content format (plain/markdown/djot/html). The older --output-format is a deprecated alias that still works but prints a warning — prefer --content-format.
- Node.js extractFile signature:
extractFile(path, mimeType?, config?) — mimeType is the second arg (pass null to skip).
- Python detect_mime_type: The function for detecting from bytes is
detect_mime_type(data). For paths use detect_mime_type_from_path(path).
- Config file field names: Use snake_case in TOML/YAML/JSON config files. The Rust
[chunking] fields are max_characters and overlap (with max_chars / max_overlap accepted as aliases). Other fields use names like output_format, pdf_options.
Supported Formats (Summary)
| Category |
Extensions |
| PDF |
.pdf |
| Word |
.docx, .odt |
| Spreadsheets |
.xlsx, .xlsm, .xlsb, .xls, .xla, .xlam, .xltm, .ods |
| Presentations |
.pptx, .ppt, .ppsx |
| eBooks |
.epub, .fb2 |
| Images |
.png, .jpg, .jpeg, .gif, .webp, .bmp, .tiff, .tif, .jp2, .jpx, .jpm, .mj2, .jbig2, .jb2, .pnm, .pbm, .pgm, .ppm, .svg |
| Markup |
.html, .htm, .xhtml, .xml |
| Data |
.json, .yaml, .yml, .toml, .csv, .tsv |
| Text |
.txt, .md, .markdown, .djot, .rst, .org, .rtf |
| Email |
.eml, .msg |
| Archives |
.zip, .tar, .tgz, .gz, .7z |
| Academic |
.bib, .biblatex, .ris, .nbib, .enw, .csl, .tex, .latex, .typ, .jats, .ipynb, .docbook, .opml, .pod, .mdoc, .troff |
See references/supported-formats.md for the complete format reference with MIME types.
Additional Resources
Detailed reference files for specific topics:
- Python API Reference — All functions, config classes, plugin protocols, exact signatures
- Node.js API Reference — All functions, TypeScript interfaces, worker pool APIs
- Rust API Reference — All functions with feature gates, structs, Cargo.toml examples
- CLI Reference — All commands, flags, config precedence, exit codes
- Configuration Reference — TOML/YAML/JSON formats, auto-discovery, env vars, full schema
- Supported Formats — All 91+ formats with file extensions and MIME types
- Advanced Features — Plugins, embeddings, MCP server, API server, security limits
- Other Language Bindings — Go, Ruby, Java, C#, PHP, Elixir, WASM, Docker
Related skills
Task-focused sibling skills go deeper than this overview:
- extracting-with-ocr — OCR backends, language packs, force-OCR, tuning.
- extracting-tables — layout-aware table detection and table models.
- chunking — chunk size/overlap, markdown/yaml/semantic chunkers, the
chunk command.
- extracting-keywords — YAKE/RAKE keywords, language detection, the
embed command.
- batch-extraction — the
batch command, --file-configs, parallelism, error recovery.
- picking-a-format — choosing
--format / --content-format per consumer.
Full documentation: https://docs.kreuzberg.dev
GitHub: https://github.com/kreuzberg-dev/kreuzberg
1---2name: kreuzberg3description: >-4 Extract text, tables, metadata, and images from 91+ document formats5 (PDF, Office, images, HTML, email, archives, academic) using Kreuzberg.6 Use when writing code that calls Kreuzberg APIs in Python, Node.js/TypeScript,7 Rust, or CLI. Covers installation, extraction (sync/async), configuration8 (OCR, chunking, output format), batch processing, error handling, and plugins.9license: Elastic-2.010metadata:11 source: https://skillmd.com/skills/concertonotes/kreuzberg12 author: kreuzberg-dev13 version: "0.1.0"14 repository: https://github.com/kreuzberg-dev/kreuzberg15---1617# Kreuzberg Document Extraction1819Kreuzberg is a high-performance document intelligence library with a Rust core and native bindings for Python, Node.js/TypeScript, Ruby, Go, Java, C#, PHP, and Elixir. It extracts text, tables, metadata, and images from 91+ file formats including PDF, Office documents, images (with OCR), HTML, email, archives, and academic formats.2021Use this skill when writing code that:2223- Extracts text or metadata from documents24- Performs OCR on scanned documents or images25- Batch-processes multiple files26- Configures extraction options (output format, chunking, OCR, language detection)27- Implements custom plugins (post-processors, validators, OCR backends)2829> If the `kreuzberg` MCP server is registered in this session, prefer its tools over shelling out to the CLI — they expose the same extraction surface with structured arguments and results.3031## Installation3233### Python3435```bash36pip install kreuzberg37# Optional OCR backends:38pip install kreuzberg[easyocr] # EasyOCR39```4041### Node.js4243```bash44npm install @kreuzberg/node45```4647### Rust4849```toml50# Cargo.toml51[dependencies]52kreuzberg = { version = "4", features = ["tokio-runtime"] }53# features: tokio-runtime (required for sync + batch), pdf, ocr, chunking,54# embeddings, language-detection, keywords-yake, keywords-rake55```5657### CLI5859```bash60brew install kreuzberg-dev/tap/kreuzberg61# or run without a persistent install (the CLI proxy package self-installs the binary):62npx @kreuzberg/kreuzberg-cli --help63uvx --from kreuzberg-cli kreuzberg --help64# or download a prebuilt binary from the latest GitHub release:65# https://github.com/kreuzberg-dev/kreuzberg/releases/latest66# or build from source:67cargo install --git https://github.com/kreuzberg-dev/kreuzberg kreuzberg-cli68```6970## Quick Start7172### Python (Async)7374```python75from kreuzberg import extract_file7677result = await extract_file("document.pdf")78print(result.content) # extracted text79print(result.metadata) # document metadata80print(result.tables) # extracted tables81```8283### Python (Sync)8485```python86from kreuzberg import extract_file_sync8788result = extract_file_sync("document.pdf")89print(result.content)90```9192### Node.js9394```typescript95import { extractFile } from "@kreuzberg/node";9697const result = await extractFile("document.pdf");98console.log(result.content);99console.log(result.metadata);100console.log(result.tables);101```102103### Node.js (Sync)104105```typescript106import { extractFileSync } from "@kreuzberg/node";107108const result = extractFileSync("document.pdf");109```110111### Rust (Async)112113```rust114use kreuzberg::{extract_file, ExtractionConfig};115116#[tokio::main]117async fn main() -> kreuzberg::Result<()> {118 let config = ExtractionConfig::default();119 let result = extract_file("document.pdf", None, &config).await?;120 println!("{}", result.content);121 Ok(())122}123```124125### Rust (Sync) — requires `tokio-runtime` feature126127```rust128use kreuzberg::{extract_file_sync, ExtractionConfig};129130fn main() -> kreuzberg::Result<()> {131 let config = ExtractionConfig::default();132 let result = extract_file_sync("document.pdf", None, &config)?;133 println!("{}", result.content);134 Ok(())135}136```137138### CLI139140```bash141kreuzberg extract document.pdf142kreuzberg extract document.pdf --format json143kreuzberg extract document.pdf --content-format markdown144```145146## Configuration147148All languages use the same configuration structure with language-appropriate naming conventions.149150### Python (snake_case)151152```python153from kreuzberg import (154 ExtractionConfig, OcrConfig, TesseractConfig,155 PdfConfig, ChunkingConfig,156)157158config = ExtractionConfig(159 ocr=OcrConfig(160 backend="tesseract",161 language="eng",162 tesseract_config=TesseractConfig(psm=6, enable_table_detection=True),163 ),164 pdf_options=PdfConfig(passwords=["secret123"]),165 chunking=ChunkingConfig(max_chars=1000, max_overlap=200),166 output_format="markdown",167)168169result = await extract_file("document.pdf", config=config)170```171172### Node.js (camelCase)173174```typescript175import { extractFile, type ExtractionConfig } from "@kreuzberg/node";176177const config: ExtractionConfig = {178 ocr: { backend: "tesseract", language: "eng" },179 pdfOptions: { passwords: ["secret123"] },180 chunking: { maxChars: 1000, maxOverlap: 200 },181 outputFormat: "markdown",182};183184const result = await extractFile("document.pdf", null, config);185```186187### Rust (snake_case)188189```rust190use kreuzberg::{ExtractionConfig, OcrConfig, ChunkingConfig, OutputFormat};191192let config = ExtractionConfig {193 ocr: Some(OcrConfig {194 backend: "tesseract".into(),195 language: "eng".into(),196 ..Default::default()197 }),198 chunking: Some(ChunkingConfig {199 max_characters: 1000,200 overlap: 200,201 ..Default::default()202 }),203 output_format: OutputFormat::Markdown,204 ..Default::default()205};206207let result = extract_file("document.pdf", None, &config).await?;208```209210### Config File (TOML)211212```toml213output_format = "markdown"214215[ocr]216backend = "tesseract"217language = "eng"218219[chunking]220max_characters = 1000221overlap = 200222223[pdf_options]224passwords = ["secret123"]225```226227```bash228# CLI: auto-discovers kreuzberg.toml in current/parent directories229kreuzberg extract doc.pdf230# or explicit:231kreuzberg extract doc.pdf --config kreuzberg.toml232kreuzberg extract doc.pdf --config-json '{"ocr":{"backend":"tesseract","language":"deu"}}'233```234235## Batch Processing236237### Python238239```python240from kreuzberg import batch_extract_files, batch_extract_files_sync241242# Async243results = await batch_extract_files(["doc1.pdf", "doc2.docx", "doc3.xlsx"])244245# Sync246results = batch_extract_files_sync(["doc1.pdf", "doc2.docx"])247248for result in results:249 print(f"{len(result.content)} chars extracted")250```251252### Node.js253254```typescript255import { batchExtractFiles } from "@kreuzberg/node";256257const results = await batchExtractFiles(["doc1.pdf", "doc2.docx"]);258```259260### Rust — requires `tokio-runtime` feature261262```rust263use kreuzberg::{batch_extract_file, ExtractionConfig};264265let config = ExtractionConfig::default();266let paths = vec!["doc1.pdf", "doc2.docx"];267let results = batch_extract_file(paths, &config).await?;268```269270### CLI271272```bash273kreuzberg batch *.pdf --format json274kreuzberg batch docs/*.docx --content-format markdown275```276277## OCR278279OCR runs automatically for images and scanned PDFs. Tesseract is the default backend (native binding, no external install required).280281### Backends282283- **Tesseract** (default): Built-in native binding. All Tesseract languages supported.284- **EasyOCR** (Python only): `pip install kreuzberg[easyocr]`. Pass `easyocr_kwargs={"gpu": True}`.285- **PaddleOCR** (Python only): Bundled since 4.8.5, no extra install needed. Pass `paddleocr_kwargs={"use_angle_cls": True}`.286- **Guten** (Node.js only): Built-in OCR backend via `GutenOcrBackend`.287288### Language Codes289290```python291config = ExtractionConfig(ocr=OcrConfig(language="eng")) # English292config = ExtractionConfig(ocr=OcrConfig(language="eng+deu")) # Multiple293config = ExtractionConfig(ocr=OcrConfig(language="all")) # All installed294```295296### Force OCR297298```python299config = ExtractionConfig(force_ocr=True) # OCR even if text is extractable300```301302## ExtractionResult Fields303304| Field | Python | Node.js | Rust | Description |305| ------------ | --------------------------- | -------------------------- | --------------------------- | --------------------------------------------- |306| Text content | `result.content` | `result.content` | `result.content` | Extracted text (str/String) |307| MIME type | `result.mime_type` | `result.mimeType` | `result.mime_type` | Input document MIME type |308| Metadata | `result.metadata` | `result.metadata` | `result.metadata` | Document metadata (dict/object/HashMap) |309| Tables | `result.tables` | `result.tables` | `result.tables` | Extracted tables with cells + markdown |310| Languages | `result.detected_languages` | `result.detectedLanguages` | `result.detected_languages` | Detected languages (if enabled) |311| Chunks | `result.chunks` | `result.chunks` | `result.chunks` | Text chunks (if chunking enabled) |312| Images | `result.images` | `result.images` | `result.images` | Extracted images (if enabled) |313| Elements | `result.elements` | `result.elements` | `result.elements` | Semantic elements (if element_based format) |314| Pages | `result.pages` | `result.pages` | `result.pages` | Per-page content (if page extraction enabled) |315| Keywords | `result.keywords` | `result.keywords` | `result.keywords` | Extracted keywords (if enabled) |316317## Error Handling318319### Python320321```python322from kreuzberg import (323 extract_file_sync, KreuzbergError, ParsingError,324 OCRError, ValidationError, MissingDependencyError,325)326327try:328 result = extract_file_sync("file.pdf")329except ParsingError as e:330 print(f"Failed to parse: {e}")331except OCRError as e:332 print(f"OCR failed: {e}")333except ValidationError as e:334 print(f"Invalid input: {e}")335except MissingDependencyError as e:336 print(f"Missing dependency: {e}")337except KreuzbergError as e:338 print(f"Extraction failed: {e}")339```340341### Node.js342343```typescript344import {345 extractFile,346 KreuzbergError,347 ParsingError,348 OcrError,349 ValidationError,350 MissingDependencyError,351} from "@kreuzberg/node";352353try {354 const result = await extractFile("file.pdf");355} catch (e) {356 if (e instanceof ParsingError) {357 /* ... */358 } else if (e instanceof OcrError) {359 /* ... */360 } else if (e instanceof ValidationError) {361 /* ... */362 } else if (e instanceof KreuzbergError) {363 /* ... */364 }365}366```367368### Rust369370```rust371use kreuzberg::{extract_file, ExtractionConfig, KreuzbergError};372373let config = ExtractionConfig::default();374match extract_file("file.pdf", None, &config).await {375 Ok(result) => println!("{}", result.content),376 Err(KreuzbergError::Parsing(msg)) => eprintln!("Parse error: {msg}"),377 Err(KreuzbergError::Ocr(msg)) => eprintln!("OCR error: {msg}"),378 Err(e) => eprintln!("Error: {e}"),379}380```381382## Common Pitfalls3833841. **Python ChunkingConfig fields**: Use `max_chars` and `max_overlap`, NOT `max_characters` or `overlap`.3852. **Rust extract_file signature**: Third argument is `&ExtractionConfig` (a reference), not `Option`. Use `&ExtractionConfig::default()` for defaults.3863. **Rust feature gates**: `extract_file_sync`, `batch_extract_file`, and `batch_extract_file_sync` all require `features = ["tokio-runtime"]` in Cargo.toml.3874. **Rust async context**: `extract_file` is async. Use `#[tokio::main]` or call from an async context.3885. **CLI --format vs --content-format**: `--format` controls CLI output (text/json). `--content-format` controls content format (plain/markdown/djot/html). The older `--output-format` is a deprecated alias that still works but prints a warning — prefer `--content-format`.3896. **Node.js extractFile signature**: `extractFile(path, mimeType?, config?)` — mimeType is the second arg (pass `null` to skip).3907. **Python detect_mime_type**: The function for detecting from bytes is `detect_mime_type(data)`. For paths use `detect_mime_type_from_path(path)`.3918. **Config file field names**: Use snake_case in TOML/YAML/JSON config files. The Rust `[chunking]` fields are `max_characters` and `overlap` (with `max_chars` / `max_overlap` accepted as aliases). Other fields use names like `output_format`, `pdf_options`.392393## Supported Formats (Summary)394395| Category | Extensions |396| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |397| **PDF** | `.pdf` |398| **Word** | `.docx`, `.odt` |399| **Spreadsheets** | `.xlsx`, `.xlsm`, `.xlsb`, `.xls`, `.xla`, `.xlam`, `.xltm`, `.ods` |400| **Presentations** | `.pptx`, `.ppt`, `.ppsx` |401| **eBooks** | `.epub`, `.fb2` |402| **Images** | `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.bmp`, `.tiff`, `.tif`, `.jp2`, `.jpx`, `.jpm`, `.mj2`, `.jbig2`, `.jb2`, `.pnm`, `.pbm`, `.pgm`, `.ppm`, `.svg` |403| **Markup** | `.html`, `.htm`, `.xhtml`, `.xml` |404| **Data** | `.json`, `.yaml`, `.yml`, `.toml`, `.csv`, `.tsv` |405| **Text** | `.txt`, `.md`, `.markdown`, `.djot`, `.rst`, `.org`, `.rtf` |406| **Email** | `.eml`, `.msg` |407| **Archives** | `.zip`, `.tar`, `.tgz`, `.gz`, `.7z` |408| **Academic** | `.bib`, `.biblatex`, `.ris`, `.nbib`, `.enw`, `.csl`, `.tex`, `.latex`, `.typ`, `.jats`, `.ipynb`, `.docbook`, `.opml`, `.pod`, `.mdoc`, `.troff` |409410See [references/supported-formats.md](references/supported-formats.md) for the complete format reference with MIME types.411412## Additional Resources413414Detailed reference files for specific topics:415416- **[Python API Reference](references/python-api.md)** — All functions, config classes, plugin protocols, exact signatures417- **[Node.js API Reference](references/nodejs-api.md)** — All functions, TypeScript interfaces, worker pool APIs418- **[Rust API Reference](references/rust-api.md)** — All functions with feature gates, structs, Cargo.toml examples419- **[CLI Reference](references/cli-reference.md)** — All commands, flags, config precedence, exit codes420- **[Configuration Reference](references/configuration.md)** — TOML/YAML/JSON formats, auto-discovery, env vars, full schema421- **[Supported Formats](references/supported-formats.md)** — All 91+ formats with file extensions and MIME types422- **[Advanced Features](references/advanced-features.md)** — Plugins, embeddings, MCP server, API server, security limits423- **[Other Language Bindings](references/other-bindings.md)** — Go, Ruby, Java, C#, PHP, Elixir, WASM, Docker424425## Related skills426427Task-focused sibling skills go deeper than this overview:428429- **extracting-with-ocr** — OCR backends, language packs, force-OCR, tuning.430- **extracting-tables** — layout-aware table detection and table models.431- **chunking** — chunk size/overlap, markdown/yaml/semantic chunkers, the `chunk` command.432- **extracting-keywords** — YAKE/RAKE keywords, language detection, the `embed` command.433- **batch-extraction** — the `batch` command, `--file-configs`, parallelism, error recovery.434- **picking-a-format** — choosing `--format` / `--content-format` per consumer.435436Full documentation: <https://docs.kreuzberg.dev>437GitHub: <https://github.com/kreuzberg-dev/kreuzberg>