henryxiao709/dsh-pdf

henryxiao709★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

DSH-PDF插件,让 AI 助手读取任意大小的 PDF 文件: 通过 pdfjs-dist 提取完整 Unicode 文本层(中文、英文及其它文字系统),并对扫描件/图片页自动 OCR, 手写笔记也能变成可读文本。DSH-PDF plugin — read any-size PDFs in DeepSeek Harness: full Unicode text (Chinese/English) via pdfjs-dist + automatic OCR (Windows WinRT / tesseract.js) for scanned pages. MIT.

README excerpt

dsh-pdf — PDF Reader Plugin for DeepSeek Harness 中文说明 A DeepSeek Harness (DSH) plugin that lets the agent read PDF files of any size — no 64KB limit . It extracts the full Unicode text layer (Chinese, English, any script) via pdfjs-dist , and automatically OCRs scanned / image-heavy pages so even handwritten lecture notes become readable text. ✨ Features - read pdf tool — returns PDF text page by page ( pages="1-3" , "2" , "1,3-5" , "all" ). - No 64KB cap — single-file limit defaults to 200 MB ( maxFileBytes ). - Full Unicode text layer — Chinese & English out of the box, other scripts too. - Automatic OCR fallback ( mode: auto ): pages with little text are rendered and OCR'd: - Windows WinRT OCR (primary, zero-install): uses the OS built-in zh-Hans-CN + en-US recognizers; - tesseract.js (optional): drop chi sim.traineddata(.gz) and eng.traineddata(.gz) into /tessdata/ to enable. - Mode control — mode=text (text layer only, fast), mode=ocr (force OCR every page), ocrEngine=windows tesseract . - MIT licensed — free to use, modify and redistribute. 📦 Requirements - A running DeepSeek Harness instance (profile web or any Cordis-based host) - Node.js ≥ 20 (for the host) - Windows with…

View full README on GitHub →
Media / Contentcordisdeepseekdeepseek-harnessdshdsh-pluginmarketplaceocrpdf

Category