dsh-pdf-reader
Run the following command in DeepSeek Harness:
dsh plugin install AngelosZou/dsh-pdf-reader
Paste the following prompt into your AI chat to install this plugin:
Install the plugin in DeepSeek Harness by running dsh plugin install AngelosZou/dsh-pdf-reader; the source code is at https://github.com/AngelosZou/dsh-pdf-reader
About this plugin
When vision models read PDFs they face a dilemma: whole-page rasterization buries small text, sub/superscripts, and vector-figure detail under a fixed pixel budget, while pure text extraction discards the spatial structure of figures, tables, and equations. dsh-pdf-reader resolves this with a per-page, content-aware strategy that feeds each page to the model in the mode that best preserves it.
Backed by PyMuPDF, the plugin exposes three tools. pdf_scan profiles every page (column count, vector regions, raster images, tables, formula risk, text-layer presence) so the agent can plan its reading order. pdf_read_page in mixed mode returns a low-res full-page preview, the extracted text, and auto-detected figure/table regions rendered as high-DPI PNGs stored in a local cache and referenced only by path, keeping heavy content out of the context window. pdf_render_region lets the agent zoom into any [x0,y0,x1,y1] rectangle at a DPI calibrated to fill the model's pixel budget without exceeding it. The result is a preview, content, refine loop that stays token-efficient and layout-faithful.
Built for developers whose AI agents need to closely read academic papers, technical whitepapers, or any PDF where figures, tables, and mathematical notation carry meaning. No manual per-page judgment or pixel math required: the plugin handles the routing automatically, and the agent only decides what to look at next.
Use Cases
- AI agents precisely reading vector figures, tables, and formulas in two-column papers
- Batch processing technical whitepapers with automatic page-type routing
- Preserving table structure and fine graphics within a vision model's single-image token budget
Best For
- AI application developers building PDF reading pipelines
- Researchers whose agents need to closely read academic papers
- Teams integrating vision models for mixed text-and-figure documents
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.