Introduction¶
Scanned PDFs present a common bottleneck in Agent workflows: the pages contain only images without a text layer, rendering them unusable for retrieval, citation, or secondary editing. Manually performing OCR page-by-page and assembling Markdown is highly costly when dealing with batches of textbooks or resource libraries. The following introduces the community Skill on SkillHub, “Local OCR PDF to MD,” designed for batch processing scanned PDFs into PDFs with a text layer, and exporting them to Markdown or plain text to facilitate subsequent retrieval and Agent consumption.
What is this¶
“Local OCR PDF to MD” is an Agent Skill located on SkillHub at the coordinate @user_543d2acf/pdf-ocr-zc (Version 1.0.0, Source: Community, Category: Office Efficiency). The publisher is user_543d2acf (marked as author zhangchong on the SkillHub page). It solves the problem of performing batch OCR on scanned PDFs to generate PDFs with a text layer, which can then be exported as Markdown or plain text. The official introduction cites a scenario where “Teacher” Agents need to convert large volumes of scanned textbook PDFs into searchable text. The tag requires_api_key=false indicates that, according to SkillHub metadata, no additional API Key configuration is required.
SkillHub Page: https://www.skillhub.cn/skills/user_543d2acf/pdf-ocr-zc
API Endpoint (Metadata): https://api.skillhub.cn/user_543d2acf/pdf-ocr-zc
Core Functions¶
Based on the official introduction and SkillHub metadata, the verifiable capabilities are as follows:
- Batch OCR: Designed for scanned PDFs, not just single-page processing.
- PDF with Text Layer: OCR results are written into the PDF text layer, facilitating system-level search and copying.
- Markdown / Plain Text Export: In addition to PDF, it provides text formats suitable for editing and feeding into Large Language Models.
- Local OCR Orientation: The Skill name emphasizes a “local” processing path, suitable for scenarios where data must not leave the local machine or where dependency on cloud OCR needs to be reduced (specific engines and dependencies are subject to the
SKILL.mdafter installation).
The public page does not separately list supported PDF page limits, language lists, or layout restoration accuracy. It is recommended to test a small batch on target samples before usage.
Installation and Activation¶
The Skill follows the standard SKILL.md format. Installation follows the official SkillHub instructions: first ensure the skillhub CLI is available, then use install to place the Skill into the current Agent’s skills directory. If installed in the wrong directory, the Agent will not load it; recognition requires a restart or reopening the session.
1. Check or Install SkillHub CLI¶
command -v skillhub && skillhub --version
If not installed, perform a full installation (CLI + Default Skill) following the SkillHub installation documentation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
For instructions and priority source strategies, see: https://skillhub.cn/install/skillhub.md
2. Install this Skill¶
During installation, you must use --dir to point to the skills directory of the current environment. The coordinate provided on the SkillHub page is @user_543d2acf/pdf-ocr-zc.
skillhub install @user_543d2acf/pdf-ocr-zc --dir <skills directory>
Common Agent skills paths (from SkillHub installation documentation):
| Environment | Skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
| Windsurf | ~/.codeium/windsurf/skills/ or .windsurf/skills/ |
Example in Cursor:
skillhub install @user_543d2acf/pdf-ocr-zc --dir ~/.cursor/skills/
After the above steps, restart Cursor or start a new Agent session; the Skill should appear in the list of available skills. Public materials do not distinguish configuration differences between Codex CLI and Claude Code for this Skill; if client behaviors differ, the SKILL.md of the Skill in the installation directory shall prevail.
Typical Usage¶
The public SkillHub page does not include step-by-step command-line examples; the reproducible workflow is consistent with the official introduction:
- Place the scanned PDFs to be processed in a path accessible to the Agent (local project directory or your agreed input directory).
- In the conversation with the Agent where this Skill is enabled, specify the need for batch OCR, output PDF with text layer, and indicate whether to simultaneously export Markdown or plain text.
- Complete the batch processing following the Agent’s guidance; for textbooks or lecture materials, select 1–2 files for a test run first to confirm if the text layer and Markdown structure meet retrieval and citation needs before scaling up.
If SKILL.md exists in the directory after installation, the steps, script paths, and parameter names within it should take precedence over the generalized description in this article.
Use Cases and Notes¶
Who is it for
- Developers or Agent builders who need to convert scanned textbooks, scanned lecture notes, and historical archive PDFs into searchable text.
- Teams or individuals who prefer OCR to be completed locally and note that no API Key is required on SkillHub.
Usage Notes
- Scan quality, skew, and two-column layouts will directly affect OCR and Markdown structure; complex layouts may require manual proofreading.
- Batch task duration increases with page count and machine performance; batching and retaining original PDFs are recommended.
- SkillHub Metadata (at time of scraping): Rating 100000, Downloads 4736, Installs 83; data changes as the store updates, subject to the real-time display on the page.
Conclusion¶
“Local OCR PDF to MD” ties together batch OCR of scanned PDFs, text-layer PDFs, and Markdown/plain text export into an Agent-ready capability chain, suitable for the digitization of textbooks and resource libraries. Installation and coordinates are subject to SkillHub:
- https://www.skillhub.cn/skills/user_543d2acf/pdf-ocr-zc
- https://api.skillhub.cn/user_543d2acf/pdf-ocr-zc