소스 정보
- 저장소
- zhu-lord/kimi-claw-backup
- 최근 소스 활동
- 2026년 3월 6일 13:54
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/zhu-lord/kimi-claw-backup --skill pdf-reader명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | pdf-reader |
| description | 全能 PDF 阅读和处理工具。支持文本提取、表格提取、图片提取、元数据读取、页面渲染、文本搜索等功能。当用户需要读取、解析或处理 PDF 文件时使用此 skill。 |
此 Skill 提供对 PDF 文件的全面处理能力,基于 PyMuPDF 和 pdfplumber 两个强大的 Python 库。
| 功能 | 描述 | 使用场景 |
|---|---|---|
| 文本提取 | 提取 PDF 文本内容,支持保留布局 | 阅读、分析、索引 |
| 表格提取 | 精确提取表格数据为结构化格式 | 数据分析、导入 Excel |
| 图片提取 | 提取内嵌图片并保存 | 素材收集、图片归档 |
| 元数据读取 | 读取标题、作者、创建日期等 | 文档管理、分类归档 |
| 页面渲染 | 将 PDF 转为 PNG/JPG 图片 | 预览、缩略图生成 |
| 文本搜索 | 在 PDF 中搜索关键词 | 快速定位内容 |
| 文档摘要 | 生成文档概览信息 | 快速了解文档内容 |
pip install pymupdf pdfplumber
主脚本:scripts/pdf_handler.py
# 提取全部文本
python3 scripts/pdf_handler.py text --input document.pdf
# 提取指定页面(第1-3页)
python3 scripts/pdf_handler.py text --input document.pdf --pages 0-2
# 提取指定页面(第1页和第3页)
python3 scripts/pdf_handler.py text --input document.pdf --pages 0,2
# 不保留布局(纯文本)
python3 scripts/pdf_handler.py text --input document.pdf --no-layout
# 提取所有表格
python3 scripts/pdf_handler.py tables --input document.pdf
# 提取指定页面的表格
python3 scripts/pdf_handler.py tables --input document.pdf --pages 0-5
# 提取图片并保存到目录
python3 scripts/pdf_handler.py images --input document.pdf --output ./images/
# 提取指定页面的图片
python3 scripts/pdf_handler.py images --input document.pdf --output ./images/ --pages 0,1
python3 scripts/pdf_handler.py metadata --input document.pdf
# 默认 150 DPI
python3 scripts/pdf_handler.py render --input document.pdf --output ./pages/
# 高分辨率 300 DPI
python3 scripts/pdf_handler.py render --input document.pdf --output ./pages/ --dpi 300
# 渲染指定页面
python3 scripts/pdf_handler.py render --input document.pdf --output ./pages/ --pages 0-4
python3 scripts/pdf_handler.py search --input document.pdf --keyword "关键词"
# 区分大小写
python3 scripts/pdf_handler.py search --input document.pdf --keyword "Keyword" --case-sensitive
python3 scripts/pdf_handler.py summary --input document.pdf
{
"success": true,
"total_pages": 10,
"pages": [
{
"page_number": 1,
"text": "页面文本内容...",
"word_count": 500,
"links": ["https://example.com"]
}
],
"full_text": "全部文本内容..."
}
{
"success": true,
"tables": [
{
"page_number": 2,
"table_index": 1,
"data": [
["表头1", "表头2"],
["数据1", "数据2"]
],
"row_count": 2,
"col_count": 2
}
]
}
{
"success": true,
"total_images": 5,
"images": [
{
"page_number": 1,
"image_index": 1,
"extension": "png",
"size": 12345,
"width": 800,
"height": 600,
"saved_path": "./images/page1_img1.png"
}
]
}
| 需求场景 | 推荐工具 | 优势 |
|---|---|---|
| 快速文本提取 | PyMuPDF | 速度快,API简单 |
| 精确坐标定位 | pdfplumber | 支持区域裁剪,可视化调试 |
| 高性能处理 | PyMuPDF | C语言核心,速度最快 |
| 表格结构化 | pdfplumber | 识别精准,支持复杂表格 |
| 图片提取 | PyMuPDF | 支持各种图片格式 |
参考 references/advanced_usage.md 了解:
pip install pymupdf pdfplumber
PyMuPDF 和 pdfplumber 都支持中文,如遇问题请检查 PDF 字体嵌入情况。
大 PDF 文件建议分页处理:
# 不要一次性提取全部页面
python3 scripts/pdf_handler.py text --input large.pdf --pages 0-9