用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cas-bigdatalab/piflow --skill pdf-crop命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pdf_crop |
| description | 裁剪PDF页面边距。通过指定边界坐标(left,bottom,right,top)来裁剪页面区域。当用户需要裁剪PDF页面时使用此skill。 |
| license | Proprietary. LICENSE.txt has complete terms |
| name_zh | 裁剪PDF页面边距算子 |
| input_params | [{"name":"input_path","type":"string","required":true,"description":"输入PDF文件路径"},{"name":"output_path","type":"string","required":true,"description":"输出PDF文件路径"},{"name":"bbox","type":"string","required":true,"description":"裁剪边界\"left,bottom,right,top\"(PDF坐标单位)"},{"name":"pages","type":"string","required":false,"description":"页码范围,如\"1-3,5\"(可选,默认全部页面)"}] |
| output_params | [{"name":"output_path","type":"pdf_file","description":"裁剪后的PDF文件"}] |
| tag | 数据转换 |
| publisher | COMMUNITY |
该技能用于裁剪PDF页面边距,通过指定边界坐标(left, bottom, right, top)来精确裁剪页面区域,适用于去除PDF边距、提取特定区域等场景。
python scripts/run_pdf_crop.py --input_path <输入PDF> --output_path <输出PDF> --bbox <裁剪边界> [--pages <页码范围>]
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| input_path | string | 是 | - | 输入PDF文件路径 |
| output_path | string | 是 | - | 输出PDF文件路径 |
| bbox | string | 是 | - | 裁剪边界"left,bottom,right,top"(PDF坐标单位) |
| pages | string | 否 | 全部 | 页码范围,如"1-3,5" |
python scripts/run_pdf_crop.py --input_path input.pdf --output_path cropped.pdf --bbox "50,50,550,750"
python scripts/run_pdf_crop.py --input_path input.pdf --output_path cropped.pdf --bbox "50,50,550,750" --pages "1-10"