Preface¶
Scanned documents, photo-exported PDFs, and fax archives often contain only page bitmaps without selectable, searchable text layers. Local OCR toolchains require manual configuration of models and layout parameters, and recognition rates are unstable on Chinese contracts and ID documents. If you are already using an Agent with Skills and wish to complete “Upload PDF -> Get searchable version” directly in the conversation, and are willing to use Tencent Cloud OCR as the recognition backend, you can take a look at the community Skill pdf-ocr-tencent.
What is it¶
pdf-ocr-tencent is a productivity Skill on SkillHub (coordinates @user_7b24470b/pdf-ocr-tencent, current version 1.0.1, source community, publisher user_7b24470b). It is positioned as a PDF OCR Enhancement Tool: it invokes Tencent Cloud OCR to convert image-based PDFs into searchable OCR PDFs with a text layer. The official introduction specifies it is suitable for scanned documents, IDs, and contracts—scenarios requiring high recognition accuracy. The Skill is tagged with requires_api_key=true, requiring Tencent Cloud API-related credentials (specific variable names and script parameters are subject to SKILL.md after installation).
SkillHub Page: https://www.skillhub.cn/skills/user_7b24470b/pdf-ocr-tencent
API Entry: https://api.skillhub.cn/user_7b24470b/pdf-ocr-tencent
Core Features¶
The following capabilities all originate from the publicly available introduction and metadata of the SkillHub Skill. After installation, the Agent will trigger and execute them according to the instructions within the Skill package:
- Image-based PDF → Searchable PDF: While preserving the visual content of the pages, an OCR text layer is overlaid to facilitate searching and copying.
- Tencent Cloud OCR Backend: Recognition is handled by Tencent Cloud, optimized for Chinese printed text and common office document scenarios.
- Agent Skill Form: It conforms to the general
SKILL.mdspecification. Once installed in the current Agent’s skills directory, it can be automatically selected without needing to hand-code the entire OCR workflow into every conversation.
Installation and Enablement¶
The installation process follows the official SkillHub documentation: https://skillhub.cn/install/skillhub.md. Below, we first perform an environment check and then install this Skill.
1. Check skillhub CLI
command -v skillhub && skillhub --version
If not installed, you can install via the official script (full installation includes default Skills; for CLI only, add --cli-only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install pdf-ocr-tencent
Official page requirement: Install @user_7b24470b/pdf-ocr-tencent according to the above installation documentation. When executing, you must use --dir to point to the skills directory currently being used by your Agent; otherwise, it defaults to ./skills/, which the Agent may fail to load.
skillhub install user_7b24470b/pdf-ocr-tencent --dir <你的 Agent skills 目录>
Common Agent skills directories (excerpted from SkillHub installation documentation):
| Agent | skills 目录 |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
After installation, refresh or restart the Agent according to the instructions of the product you are using to make the new Skill take effect.
3. Configure API Key
The metadata is tagged requires_api_key=true. Before running OCR, configure the Tencent Cloud keys and region according to SKILL.md inside the Skill package; calls will fail if not configured.
Typical Usage¶
Assuming the Skill is installed and API credentials are ready, the usage is consistent with most productivity Skills:
- In an environment like Cursor or Claude Code that has this Skill mounted, describe that you want to convert an image-based / scanned PDF into a searchable PDF and provide the local file path or upload as guided by the Agent.
- The Agent invokes the processing logic included with the Skill according to
SKILL.md(usually including page recognition and writing the text layer) and outputs a new PDF file. - Open the result with a PDF reader and use Ctrl+F (or equivalent search) to verify if the body text is searchable.
Specific command-line entry points and dependency installations (e.g., Python packages) are subject to SKILL.md and scripts/ in your local package; differences may exist between versions. The current public version number is 1.0.1.
Applicable Scenarios and Notes¶
Suitable for:
- Chinese scanned documents and photo PDFs that need to be quickly converted into searchable, copyable text archives.
- Contracts, receipts, and ID documents with moderate page counts and requirements for high recognition accuracy (consistent with the official introduction).
Notes:
- API Key and Costs: It relies on Tencent Cloud OCR; you must comply with console quotas and billing rules. Large batches and high-page-count documents will generate significant API calls.
- Privacy and Compliance: Page images will be sent to Tencent Cloud for processing. Please ensure sensitive contracts and IDs comply with your organization’s data export and third-party processing policies.
- Document Types: The official emphasis is on image-based PDFs; PDFs that already have a text layer do not need re-OCR. The accuracy for purely handwritten text is typically lower than for printed text, so small-scale testing is recommended first.
- Install Source: The Skill is published by community. Before use, you can view ratings and update history on the SkillHub page (the page displays a rating of 100000 with 834 downloads; statistics are based on SkillHub real-time data).
Conclusion¶
pdf-ocr-tencent encapsulates “Image PDF + Tencent Cloud OCR + Searchable PDF output” as an Agent Skill, making it suitable for processing scanned documents and contract-type documents within a conversational workflow. For installation and priority source configuration, see the SkillHub Installation Documentation; for detailed Skill information and installation guidance, see https://www.skillhub.cn/skills/user_7b24470b/pdf-ocr-tencent.