Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Convert PDF/PNG/JPEG/MOBI/EPUB to Markdown. Uses Baidu OCR only. Use when 扫描PDF转Markdown、pdf ocr、图像识别、电子书转Markdown、ebook to markdown.
Convert PDF/PNG/JPEG/MOBI/EPUB to Markdown. Uses Baidu OCR only. Use when 扫描PDF转Markdown、pdf ocr、图像识别、电子书转Markdown、ebook to markdown.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
将 PDF、图片、MOBI、EPUB 转为 Markdown。仅使用百度 OCR。
PDF:扫描版/图像型 PDF PNG/JPEG:单张图片 MOBI/EPUB:需安装 Calibre,先转 PDF 再处理 图片 OCR 输出会自动添加 Markdown 分段:首行若为短标题则转为 ##,对话段落前插入空行。
仅输出 Markdown(.md)。
ParameterTypeRequiredDefaultDescriptioninput_pathstringyes-文档路径(pdf/png/jpeg/mobi/epub)或 base64 图片output_pathstringno-输出文件路径ocr_backendstringno"baidu"保留参数,仅支持百度inline_imagesboolnotrue图片是否 base64 内联
# PDF 转 Markdown(百度 OCR) python scripts/ebook_to_md.py --input_path=./scanned.pdf # 图片转 Markdown python scripts/ebook_to_md.py --input_path=./screenshot.png # 指定输出路径 python scripts/ebook_to_md.py --input_path=./report.pdf --output_path=./report.md
pip install requests
Calibre(mobi/epub):brew install calibre 百度 OCR:设置 BAIDU_OCR_API_KEY、BAIDU_OCR_SECRET_KEY
from skills.ebook_to_md import main main(input_path='./report.pdf', output_path='./report.md') main(input_path='./image.png') # 图片识别
main(input_path='./book.epub', output_path='./book.md') main(input_path='./book.mobi', output_path='./book.md')
成功:返回字符串,含预览;若指定 output_path 则写入文件。 失败:返回 "错误: ..."
pdf_to_markdown:原生文本 PDF 转换(docling)
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.