pdf-inspector — Rust PDF 分類與文字提取
- URL: https://www.threads.com/share/BBVqUGVzva/
- Canonical: https://www.threads.com/@happygithub/post/DeVAuFHkyeX
- Date Saved: 2026-10-11
- Source: Threads (@happygithub)
- Tags: dev-tools, ai-engineering
- Repo: https://github.com/firecrawl/pdf-inspector (19,592 stars)
- See also: 2026-08-03-pdf-inspector-smart-ocr-routing.md (same tool)
Summary
@happygithub 介紹 Firecrawl 的 pdf-inspector,Rust 函式庫用於 PDF 智慧分類與文字提取。
關鍵能力
- 10-50 毫秒內偵測 PDF 類型(純文字/掃描/圖片/混合)
- 位置感知(position-aware)文字提取,輸出乾淨 Markdown
- 提供信心分數與每頁 OCR 路由
- 掃描頁面支援選擇性 OCR(PP-OCRv6 Small,可本地運行)
- 基準測試:200 份 PDF 僅需 0.470 秒
技術細節
- Rust 編寫,MIT 授權
- 內容串流採樣偵測 PDF 類型
- 適合 RAG 管線前處理大量 PDF