pdfmux
FreePDF-to-Markdown extraction with per-page confidence scoring and self-healing fallback. Native LangChain document loader (`PdfmuxLoader`); built for RAG pipelines that can't tolerate silent extraction failures. 
About pdfmux
pdfmux is an open-source PDF extraction tool that self-heals by re-extracting failed pages and certifies any extractor's output. It acts as a router that sends each page to the best of seven built-in backends (PyMuPDF, OpenDataLoader, RapidOCR, Docling, Surya, Marker, Mistral OCR) or a BYOK LLM fallback (Gemini, Claude, GPT-4o, Ollama). It provides per-page confidence scoring, flags pages it cannot read instead of silently dropping them, and offers a verify command to audit any extraction engine's output. Native integrations include a LangChain document loader (PdfmuxLoader), LlamaIndex loader, and an MCP server for Claude Desktop. Free, MIT licensed, with an easy pip install.
Key Features
Pros & Cons
- Self-healing mechanism catches and re-extracts silently dropped or garbled pages
- Certification feature allows you to audit any extraction engine for missing content
- Multiple extraction backends (including LLM fallback) ensure broad PDF type coverage
- Easy installation via pip with optional extras for OCR, tables, and LLMs
- Integrates natively with LangChain and LlamaIndex for RAG pipelines
- Free and open source (MIT), no API key required for basic usage
- OCR and some backends require additional dependencies (e.g., Java 11+ for OpenDataLoader, large models for Surya)
- LLM fallback incurs API costs and requires API keys
- Relatively new project with a smaller community and fewer integrations than established tools
- Performance may vary depending on the complexity of PDF and chosen backends