PDF和图片文字提取

v1.0.0

从图片或 PDF 文档中识别并提取文字内容,支持多种图片格式和 PDF 文件,自动判断是否包含文字并保留原始格式输出结构化结果;当用户需要从图片或 PDF 提取文字、进行 OCR 识别、处理含文字的文档或转换为可编辑文本时使用

0· 45·0 current·0 all-time
byto the moon@yuanyi-github
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The skill claims to handle both images and PDFs. The included script (scripts/pdf_text_extractor.py) only processes text-based PDF content via PyMuPDF; image OCR is delegated in SKILL.md to a platform 'read_image' tool. SKILL.md also sometimes implies support for scanned PDFs but the script itself does not perform OCR — it will return empty text for image-only pages and advise using OCR. This is a minor mismatch but explainable (PDF handling vs OCR delegation).
Instruction Scope
Runtime instructions are narrow: obtain image URL or local PDF path, call the platform 'read_image' tool for images, and run the bundled Python script for PDFs. The script reads only the provided file path, validates suffix, extracts text with PyMuPDF, returns JSON, and does not access other files, environment variables, or external endpoints.
Install Mechanism
No automated install spec is included (instruction-only). SKILL.md documents a single dependency (pymupdf) and suggests 'pip install pymupdf>=1.23.0'. There are no downloads from arbitrary URLs or archive extraction steps in the package.
Credentials
The skill requests no environment variables, credentials, or config paths. The code does not reference any secrets or external services. This is proportionate to the stated function.
Persistence & Privilege
The skill is not always-enabled, is user-invocable, and does not modify other skills or system settings. The script does not write persistent state; SKILL.md states files are only used in-session.
Assessment
This skill appears to do what it says for text-based PDFs and is not requesting credentials or making external network calls. Before installing, confirm two things: (1) your agent/platform supplies a 'read_image' tool (SKILL.md relies on it for image OCR) or you have a separate OCR tool — the bundled script does not perform OCR on scanned/image pages; (2) you are comfortable installing the PyMuPDF (pymupdf) Python package. Also note the package source/homepage is unknown — if provenance matters to you, request the author's origin or review the code yourself (the included script is short and local). If you need automatic OCR of scanned PDFs or images, verify the agent has an OCR tool or extend the skill to include one.

Like a lobster shell, security has layers — review code before you run it.

latestvk977gtnd3r7w248y727sbpqqjh84vwjs

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments