Pdf split

From cas-bigdatalab/piflow · View interactive version

Pdf split is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 将PDF按指定页码范围拆分为独立的PDF文件。当用户需要拆分PDF文档时使用此skill。

How to use this skill

Skill file

pdf_split 技能

功能说明

该技能将PDF按指定页码范围拆分为独立的PDF文件,适用于需要提取特定页面或拆分大型PDF的场景。

核心功能

使用方法

python scripts/run_pdf_split.py --input_path <输入PDF> --output_path <输出PDF> [--pages <页码范围>]

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |

| :--- | :--- | :--- | :--- | :--- |

| input_path | string | 是 | - | 输入PDF文件路径 |

| output_path | string | 是 | - | 输出PDF文件路径(多页时自动添加_pageN后缀) |

| pages | string | 否 | 全部 | 页码范围,如"1-3,5"(默认全部页拆为单页) |

示例

示例1:拆分全部页面为单页

python scripts/run_pdf_split.py --input_path input.pdf --output_path split/page

示例2:提取单页

python scripts/run_pdf_split.py --input_path input.pdf --output_path page5.pdf --pages "5"

示例3:提取指定页码范围

python scripts/run_pdf_split.py --input_path input.pdf --output_path split/page --pages "1-3,5"

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.