关于 PDF Converter
PDF Converter 是用于指导 PDF 与其他文档格式互转的技能,适合需要处理文档、提取图像或批量规划转换的人。它提供格式选择、质量优化和故障排查建议,但不执行实际文件转换。
主要功能
- 01PDF 与 Word、Excel 等格式互转指导
- 02从 PDF 提取图像或文本
- 03批量转换流程规划
- 04转换质量优化与故障排查
适用场景
- 01规划一批 PDF 转 Word 的处理
- 02将文档导出为 PDF 并检查设置
- 03按分辨率导出 PDF 页面图像
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill pdf-converter安装后在 Claude Code 中输入/pdf-converter确认已加载。
详细介绍
PDF 转换器
在保留格式的同时,将 PDF 文件转换为各种格式,反之亦然。
概述
此技能可帮助你:
- 将 PDF 转换为可编辑格式(Word、Excel)
- 将文档转换为 PDF
- 从 PDF 中提取图像
- 优化转换质量
- 处理批量转换
支持的转换
PDF 转换为其他格式
| 目标格式 | 最适合的用途 | 质量 |
|---|---|---|
| Word (.docx) | 文本较多的文档 | ⭐⭐⭐⭐ |
| Excel (.xlsx) | 表格和数据 | ⭐⭐⭐⭐ |
| PowerPoint (.pptx) | 演示文稿 | ⭐⭐⭐ |
| 图像 (.png/.jpg) | 视觉快照 | ⭐⭐⭐⭐⭐ |
| 文本 (.txt) | 纯文本提取 | ⭐⭐⭐⭐ |
| HTML | 网页内容 | ⭐⭐⭐ |
| Markdown (.md) | 结构化文本 | ⭐⭐⭐ |
其他格式转换为 PDF
| 源格式 | 质量说明 |
|---|---|
| Word (.docx) | 保留效果出色 |
| Excel (.xlsx) | 效果良好,需检查分页符 |
| PowerPoint (.pptx) | 效果出色,但动画会变为静态 |
| 图像 | 取决于分辨率 |
| HTML | 效果不一,CSS 可能有所差异 |
| 文本 (.txt) | 转换效果完美,但格式基础 |
使用方法
基本转换
"Convert this PDF to Word"
"Save this document as PDF"
"Extract this PDF as images"
使用选项
"Convert PDF to Word, preserve exact formatting"
"Export PDF pages 1-5 as PNG images at 300 DPI"
"Convert Excel to PDF, fit all columns on one page"
批量转换
"Convert all PDFs in this folder to Word documents"
"Create PDFs from these 10 Word files"
转换指南
PDF 转换为 Word
## PDF to Word Conversion
### Best Practices
1. **Check source PDF type**:
- Native PDF (from Word/etc): Best results
- Scanned PDF: Use OCR first
- Image-based: Limited accuracy
2. **Formatting considerations**:
- Complex layouts may shift
- Fonts substitute if not installed
- Tables may need adjustment
- Headers/footers require review
### Quality Settings
| Setting | Result |
|---------|--------|
| **Exact** | Matches layout precisely, harder to edit |
| **Editable** | Optimized for editing, may shift layout |
| **Text only** | Plain text, no formatting |
### Common Issues
| Issue | Solution |
|-------|----------|
| Text as image | Run OCR before converting |
| Missing fonts | Embed or substitute fonts |
| Broken tables | Manually adjust in Word |
| Lost colors | Check color profile settings |
PDF 转换为 Excel
## PDF to Excel Conversion
### Ideal Sources
- PDF with clear table structure
- Financial statements
- Data reports
- Invoices with line items
### Extraction Methods
| Method | Use When |
|--------|----------|
| **Auto-detect tables** | Clear table borders |
| **Select area** | Tables without borders |
| **Full page** | Entire page is data |
### Quality Tips
1. Ensure PDF has selectable text (not scanned)
2. Clean table borders help detection
3. Merged cells may cause issues
4. Multi-page tables need manual merge
### Data Cleanup
After conversion, check:
- [ ] Column alignment
- [ ] Number formatting
- [ ] Date formats
- [ ] Merged cell handling
- [ ] Header row detection
PDF 转换为图像
## PDF to Image Conversion
### Resolution Settings
| DPI | Use Case | File Size |
|-----|----------|-----------|
| 72 | Screen viewing | Small |
| 150 | Email/web | Medium |
| 300 | Print quality | Large |
| 600 | High-quality print | Very large |
### Format Selection
| Format | Best For |
|--------|----------|
| **PNG** | Text, graphics, transparency |
| **JPG** | Photos, smaller files |
| **TIFF** | Print production |
| **WebP** | Web optimization |
### Output Options
- All pages → separate images
- Specific pages → selected images
- Page range → batch export
文档转换为 PDF
## Converting to PDF
### From Word
**Settings**:
- [ ] Embed fonts
- [ ] Include bookmarks
- [ ] Set PDF/A for archival
- [ ] Compress images (optional)
### From Excel
**Settings**:
- [ ] Define print area
- [ ] Set page breaks
- [ ] Choose orientation
- [ ] Fit to page options
### From PowerPoint
**Settings**:
- [ ] Slide range
- [ ] Include notes (optional)
- [ ] Quality level
- [ ] Handout format (optional)
### Universal Tips
1. Review in print preview first
2. Check page breaks
3. Ensure fonts are embedded
4. Verify hyperlinks work
批处理
批量转换模板
## Batch Conversion Job
**Source**: [Folder path]
**Target Format**: [Format]
**Output Folder**: [Path]
### Files to Convert
| File | Pages | Status |
|------|-------|--------|
| document1.pdf | All | ✅ Complete |
| document2.pdf | All | ✅ Complete |
| document3.pdf | 1-5 | ⏳ Processing |
### Settings Applied
- Resolution: [X] DPI
- Quality: [High/Medium/Low]
- Naming: [Original name]_converted.[ext]
### Summary
- Total files: [X]
- Successful: [Y]
- Failed: [Z]
故障排除
常见问题
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 文本无法选中 | 扫描版 PDF | 先进行 OCR 处理 |
| 缺少字符 | 字体问题 | 嵌入字体或进行转换 |
| 图像质量差 | DPI 低 | 使用更高分辨率 |
| 文件体积过大 | 未压缩 | 进行压缩 |
| 格式丢失 | 布局复杂 | 使用 "exact" 模式 |
质量检查清单
转换后,请确认:
- 所有文本均存在且清晰可读
- 格式大致得以保留
- 图像已包含且清晰
- 表格结构正确
- 链接可正常使用(如适用)
- 页数一致
工具推荐
在线工具
- Adobe Acrobat(质量最佳)
- SmallPDF(易于使用)
- ILovePDF(适合批量处理)
- PDF24(免费,质量良好)
桌面软件
- Adobe Acrobat Pro
- Microsoft Office(内置)
- LibreOffice(免费)
- Foxit PDF Editor
命令行
- Pandoc(文本格式)
- ImageMagick(图像)
- pdftk(PDF 操作)
- Poppler utilities
限制
- 无法实际转换文件(仅提供指导)
- 扫描版 PDF 需要预先进行 OCR 处理
- 复杂布局可能无法完美转换
- 受密码保护的 PDF 需要密码
- 转换时总会丢失部分格式
- 转换质量取决于源 PDF 的类型
评论
支持 Markdown