PDF to Image Preview
将PDF文件的每一页转换为图片文件;支持自定义图片格式(PNG/JPG)和分辨率;适用于文档处理、图片化存档等场景
Install
npx skills add wuchubuzai2018/expert-skills-hub --skill pdf-to-image-previewgit clone --depth 1 https://github.com/wuchubuzai2018/expert-skills-hub.git /tmp/expert-skills-hub
mkdir -p ~/.claude/skills
cp -r /tmp/expert-skills-hub/skills/pdf-to-image-preview ~/.claude/skills/pdf-to-image-previewPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# PDF转图片Skill
## 任务目标
- 本Skill用于:将PDF文件的每一页转换为独立的图片文件
- 能力包含:PDF文件解析、图片格式转换(PNG/JPG)、可调分辨率输出
- 触发条件:用户需要将PDF转换为图片、提取PDF页面、图片化PDF内容等场景
## 前置准备
- 依赖说明:scripts脚本所需的依赖包及版本
```
pymupdf>=1.23.0
```
## 操作步骤
- 标准流程:
1. **准备PDF文件**
- 确认PDF文件路径(使用 `./` 表示当前工作目录)
- 例如:`./document.pdf`
2. **执行转换**
- 调用脚本将PDF文件的每一页转换为图片
- 命令示例:
```bash
python scripts/convert_pdf_to_images.py \
--input ./document.pdf \
--output-dir ./images
```
- 可选参数:
- `--image-format`: 图片格式,支持 `png` 或 `jpg`,默认为 `png`
- `--dpi`: 图片分辨率(DPI),默认为 `200`
- `--zip`: 生成ZIP压缩包
- `--zip-output`: ZIP压缩包输出路径(默认:images.zip)
3. **查看输出**
- 图片文件保存在指定的输出目录中
- 文件命名格式:`page_001.png`、`page_002.png`...
- 可选择是否生成ZIP压缩包
## 资源索引
- 必要脚本:见 [scripts/convert_pdf_to_images.py](scripts/convert_pdf_to_images.py)(用途与参数:PDF转图片脚本)
## 注意事项
- 输入PDF文件必须存在且可读
- 输出目录必须具有写入权限
- **PDF页数限制**:暂支持100页以内的PDF文件,超过100页请拆分后转换
- 大型PDF文件转换可能需要较长时间,请耐心等待
## 故障排查
- **脚本找不到错误**:确保在Skill目录下执行,或使用相对路径 `scripts/xxx.py`
- **Python版本问题**:确保使用Python 3.6或更高版本
- **依赖缺失**:执行 `pip install pymupdf>=1.23.0` 安装依赖
- **页数超限错误**:PDF文件超过100页,请使用PDF工具拆分为多个小文件
## 使用示例
### 示例1:基本转换(PNG格式)
```bash
python scripts/convert_pdf_to_images.py \
--input ./report.pdf \
--output-dir ./images
```
### 示例2:使用JPG格式
```bash
python scripts/convert_pdf_to_images.py \
--input ./document.pdf \
--output-dir ./images \
--image-format jpg
```
### 示例3:高分辨率输出Details
- Skill name
pdf-to-image-preview- Repository
- wuchubuzai2018/expert-skills-hub
- Path
skills/pdf-to-image-preview/SKILL.md- Repo updated
- 7 November 2026
FAQ
What does the PDF to Image Preview skill do?
将PDF文件的每一页转换为图片文件;支持自定义图片格式(PNG/JPG)和分辨率;适用于文档处理、图片化存档等场景
How do I install the PDF to Image Preview skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add wuchubuzai2018/expert-skills-hub --skill pdf-to-image-preview. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is PDF to Image Preview popular?
It lives in wuchubuzai2018/expert-skills-hub, which has 43 GitHub stars and 6 forks.
Related skills
Apiyi Gpt Image 2 All Gen
43wuchubuzai2018/expert-skills-hub
AI图片生成技能,使用ChatGPT最新生图 gpt-image-2-all,当用户需要生成图片、视觉信息图、创建图像、编辑/修改/调整已有图片时使用此技能。基于API易平台(https://api.apiyi.com/)的ChatGPT最新生图gpt-image-2-all模型(gpt-image-2-all)的图片生成服务,无需访问外网。该模型以 $0.03/张 按次计费,支持文生图、单图编辑、多图融合、自然语言改图,文字还原度高、中文提示词友好。尺寸通过prompt描述控制(无显式size参数)与NanoBanana2不同的关键点:无size参数,需在prompt开头描述尺寸;统一$0.03/张无分辨率阶梯;使用对话式端点/v1/chat/completions为主推。
Apiyi Gpt Image 2 Gen
43wuchubuzai2018/expert-skills-hub
图片生成技能,当用户需要生成图片、视觉信息图、创建图像、编辑/修改/调整已有图片时使用此技能。基于API易平台(https://api.apiyi.com/)的ChatGPT Image 2模型(gpt-image-2)的官方正式版图片生成服务。该模型支持精确的尺寸/画质控制(含4K),按token计费。与gpt-image-2-all(官逆版)不同的关键点:使用/v1/images/generations和/v1/images/edits端点;有显式size参数;有quality参数;按token计费;使用multipart/form-data上传参考图;b64_json为纯base64无前缀。
Baidu Milan Winter Olympics 2026
43wuchubuzai2018/expert-skills-hub
获取2026年米兰冬奥会数据技能,包括奖牌榜排名、现场新闻报道和赛程安排。从百度体育网页抓取实时的奖牌排行榜信息、最新新闻资讯和比赛赛程。当用户需要获取米兰冬奥会需求,需要查询冬奥会奖牌榜、了解各国奖牌数量、获取现场新闻、查看赛程安排时使用此技能。能够根据指定时间(今天、明天、yyyy-MM-dd日期格式)或指定运动项目获取赛程安排。A skill for retrieving 2026 Milan Winter Olympics data, including medal standings, live news reports, and competition schedules. Scrapes real-time medal rankings, latest news, and match schedules from Baidu Sports. Use this skill when users need to query Winter Olympics medal standings, check medal counts by country, get live news, or view competition schedules.
Annas Archive Ebooks
59ratacat/claude-skills
Use when needing to look up book content, find a book by title/author, download an ebook, or reference material from a published book. Triggers on book lookups, ebook downloads, "find the book", "get the PDF/EPUB of". Downloads produce PDF/EPUB/MOBI files - use ebook-extractor skill to convert to text.
Governance
52korchard333/claude-power-platform-community
Power Platform governance, DLP policies, Center of Excellence, tenant administration. Use when: DLP, data loss prevention, governance, CoE, Center of Excellence, tenant settings, sharing limits, compliance, audit, data residency, connector classification, maker controls, admin API.
Ebook Extractor
59ratacat/claude-skills
Use when user wants to extract text from ebooks (EPUB, MOBI, PDF). Use for converting ebooks to plain text for analysis, processing, or reading. Handles all common ebook formats.
Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.