关于 PDF Merge & Split
PDF Merge & Split 是用于整理 PDF 文档的技能,可指导合并文件、提取页面和调整页面顺序。适合需要编辑文档的用户;它提供操作指导,但不会实际处理文件。
主要功能
- 01合并多个 PDF
- 02按页码范围或大小拆分
- 03提取指定页面
- 04重排、插入、删除或旋转页面
- 05规划批量合并与拆分
- 06推荐 PDF 工具
适用场景
- 01将多份报告合并为一个 PDF
- 02提取合同页面供审阅
- 03将大型文档拆分为多个部分
- 04重排或旋转扫描页面
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill pdf-merge-&-split安装后在 Claude Code 中输入/pdf-merge-&-split确认已加载。
详细介绍
PDF 合并与拆分
将多个 PDF 文件合并为一个文件,或将 PDF 拆分为多个文档。
概览
此技能可帮助你:
- 将多个 PDF 合并为一个文件
- 按页面范围拆分 PDF
- 提取指定页面
- 调整 PDF 中页面的顺序
- 创建自定义排列
使用方法
合并 PDF
"Merge these 3 PDFs into one file"
"Combine document1.pdf and document2.pdf"
"Join all PDFs in this folder in alphabetical order"
拆分 PDF
"Split this PDF into individual pages"
"Extract pages 5-10 from this PDF"
"Split this PDF every 5 pages"
调整顺序
"Move page 3 to the end"
"Reorder pages: 1, 3, 2, 4, 5"
"Reverse the page order"
合并操作
基本合并
## PDF Merge Plan
### Input Files
| Order | File | Pages | Size |
|-------|------|-------|------|
| 1 | cover.pdf | 1 | 50 KB |
| 2 | chapter1.pdf | 15 | 2.1 MB |
| 3 | chapter2.pdf | 22 | 3.4 MB |
| 4 | appendix.pdf | 8 | 1.2 MB |
### Output
- **Filename**: combined_document.pdf
- **Total Pages**: 46
- **Estimated Size**: ~6.7 MB
### Merge Options
- [ ] Add bookmarks for each source file
- [ ] Preserve original bookmarks
- [ ] Include blank page between files
- [ ] Optimize/compress output
高级合并
## Advanced PDF Merge
### Custom Page Selection
| Source | Pages to Include | Insert Position |
|--------|------------------|-----------------|
| main.pdf | 1-10 | 1-10 |
| insert.pdf | All (5 pages) | After page 10 |
| main.pdf | 11-20 | 16-25 |
| appendix.pdf | 2-4 only | 26-28 |
### Output Configuration
- **Filename**: custom_merged.pdf
- **Page numbering**: Reset to 1 / Continue from original
- **Bookmarks**: Create from filenames / Preserve all
### Quality Settings
- Resolution: Original / Reduce to [X] DPI
- Compression: None / Low / Medium / High
拆分操作
按范围拆分
## PDF Split Plan
### Source
- **File**: large_document.pdf
- **Total Pages**: 100
### Split Configuration
| Output File | Page Range | Pages |
|-------------|------------|-------|
| part1.pdf | 1-25 | 25 |
| part2.pdf | 26-50 | 25 |
| part3.pdf | 51-75 | 25 |
| part4.pdf | 76-100 | 25 |
### Naming Pattern
`[original_name]_part[N].pdf`
按大小拆分
## Split by File Size
### Source
- **File**: huge_report.pdf
- **Total Pages**: 500
- **File Size**: 250 MB
### Target
- **Max file size**: 25 MB
- **Estimated splits**: ~10 files
### Output
| File | Pages | Actual Size |
|------|-------|-------------|
| report_001.pdf | 1-52 | 24.8 MB |
| report_002.pdf | 53-98 | 23.2 MB |
| ... | ... | ... |
按书签拆分
## Split by Bookmarks/Chapters
### Source Structure
- large_manual.pdf
- Chapter 1: Introduction (p.1)
- Chapter 2: Setup (p.15)
- Chapter 3: Usage (p.45)
- Chapter 4: Advanced (p.120)
- Appendix (p.180)
### Split Output
| File | Chapter | Pages |
|------|---------|-------|
| ch1_introduction.pdf | Introduction | 1-14 |
| ch2_setup.pdf | Setup | 15-44 |
| ch3_usage.pdf | Usage | 45-119 |
| ch4_advanced.pdf | Advanced | 120-179 |
| appendix.pdf | Appendix | 180-end |
提取指定页面
## Page Extraction
### Source
- **File**: contract.pdf (20 pages)
### Pages to Extract
- [x] Page 1 (Cover)
- [x] Pages 5-7 (Terms)
- [x] Page 15 (Signatures)
- [x] Page 20 (Appendix A)
### Output
- **File**: contract_key_pages.pdf
- **Pages**: 6 total (1, 5, 6, 7, 15, 20)
页面操作
调整页面顺序
## Page Reorder Plan
### Current Order
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
### New Order
1, 2, 4, 3, 5, 6, 8, 7, 9, 10
### Changes
- Page 3 ↔ Page 4 (swapped)
- Page 7 ↔ Page 8 (swapped)
删除页面
## Page Deletion
### Source
- document.pdf (25 pages)
### Pages to Remove
- Page 3 (blank page)
- Pages 12-14 (outdated section)
- Page 25 (draft watermark)
### Result
- New page count: 20
- Output: document_cleaned.pdf
插入页面
## Page Insertion
### Base Document
- main.pdf (10 pages)
### Insertions
| Insert | After Page | From |
|--------|------------|------|
| Cover page | 0 (beginning) | cover.pdf |
| Diagram | 5 | diagrams.pdf (page 2) |
| Appendix | 10 (end) | appendix.pdf |
### Result
- New page count: 14
旋转页面
## Page Rotation
### File: scanned_doc.pdf
### Rotations Needed
| Page(s) | Current | Rotation | New |
|---------|---------|----------|-----|
| 3 | Portrait | 90° CW | Landscape |
| 7-9 | Upside down | 180° | Correct |
| 15 | Landscape | 90° CCW | Portrait |
批量处理
批量合并
## Batch Merge Job
### Task: Merge PDFs by Project
### Folder Structure
/reports/ /project-a/ report1.pdf report2.pdf /project-b/ summary.pdf details.pdf
### Output
| Merged File | Sources |
|-------------|---------|
| project-a_combined.pdf | report1.pdf, report2.pdf |
| project-b_combined.pdf | summary.pdf, details.pdf |
批量拆分
## Batch Split Job
### Input
- /monthly_reports/ (12 files, each ~50 pages)
### Operation
- Split each file into 5-page chunks
### Output
- /monthly_reports_split/
- jan_001.pdf, jan_002.pdf, ...
- feb_001.pdf, feb_002.pdf, ...
- ...
工具推荐
免费工具
- PDF24:网页版和桌面版,功能齐全
- ILovePDF:网页版,易于使用
- PDFsam Basic:桌面版,开源
- Preview (Mac):内置工具,支持拖放
专业工具
- Adobe Acrobat Pro:行业标准
- Foxit PDF Editor:功能齐全
- Nitro Pro:适合商务用途
命令行工具
- pdftk:经典、功能强大
- qpdf:快速、可编写脚本
- pdfcpu:基于 Go 的现代工具
限制
- 无法执行实际文件操作(仅提供指导)
- 受密码保护的 PDF 需要先提供密码
- 超大文件可能需要分块处理
- 某些受限制的 PDF 无法修改
- 合并不同页面尺寸的 PDF 可能会导致问题
评论
支持 Markdown