pdf-inspector vs xberg
PDF extraction and document processing compared
pdf-inspector classifies PDFs, extracts positioned text, and converts document structures to Markdown. xberg handles a broader range of document and data types through several interfaces, with optional OCR and other processing features.

pdf-inspector: Classify PDFs and Extract Text as Markdown
pdf-inspector is a Rust library and set of bindings for classifying PDFs, extracting positioned text, and converting documents to Markdown. It helps processing pipelines route scanned pages to OCR while handling text-based pages locally.

xberg: Extract Text and Structure from Documents
Xberg is a Rust-based document intelligence engine that extracts text, tables, metadata, and structured data from many file types. Use it as a library, CLI, REST API, or MCP server, with bindings for multiple languages.
| pdf-inspector | xberg | |
|---|---|---|
| Language | Rust | Rust |
| License | MIT | MIT |
| Stars | 19.5k | 9.4k |
| Forks | 1.3k | 588 |
| Last analyzed | Oct 3, 2026 | Oct 3, 2026 |
Key differences
- pdf-inspector focuses on PDF classification and extraction, while xberg processes many document, data, image, archive, audio, web, and source-code formats.
- pdf-inspector can identify pages that may need OCR and route them selectively; xberg offers multiple OCR backends, with some capabilities dependent on enabled features or external requirements.
- pdf-inspector provides Rust, Python, Node.js, browser WebAssembly, and CLI workflows; xberg also offers a REST API and MCP server, plus bindings for 15 languages.
- pdf-inspector emphasizes positioned text, reading order, and Markdown conversion; xberg offers multiple output formats, metadata and table extraction, and code-structure processing.
- Both projects use Rust and the MIT license. The supplied metadata lists 19.5k stars and 1.3k forks for pdf-inspector, and 9.4k stars and 588 forks for xberg.
Choose pdf-inspector if you…
- need to classify PDFs and route scanned pages to OCR selectively.
- want positioned text, reading order, or structured Markdown from PDFs.
- prefer a focused PDF workflow with Rust, Python, Node.js, browser WebAssembly, or CLI access.
Choose xberg if you…
- need to extract content across many file types through a shared interface.
- want a REST API, MCP server, CLI, or bindings for a range of programming languages.
- need options such as archive processing, audio transcription, or syntax-aware code extraction.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.