OpenParable
Skip to content
← Back to skills

PDF Merge

Documents
pdf_merge

PDF Merge is an Agent Skill for documents published in the cas-bigdatalab/piflow repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

将多个PDF文件合并为一个PDF文件。当用户需要合并PDF文档时使用此skill。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/cas-bigdatalab/piflow/blob/HEAD/workspace/skills/pdf_merge/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/pdf-merge, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

pdf_merge 技能

功能说明

该技能将多个PDF文件合并为一个PDF文件,适用于需要将多个文档合并成完整报告的场景。

核心功能

  • 支持合并多个PDF文件
  • 按输入顺序合并页面
  • 自动跳过不存在的文件
  • 自动创建输出目录

使用方法

python scripts/run_pdf_merge.py --input_paths <文件1> <文件2> ... --output_path <输出PDF>

参数说明

参数类型必填默认值说明
input_pathslist是-输入PDF文件路径列表(多个以空格分隔)
output_pathstring是-输出PDF文件路径

示例

示例1:合并两个PDF

python scripts/run_pdf_merge.py --input_paths file1.pdf file2.pdf --output_path merged.pdf

示例2:合并多个PDF

python scripts/run_pdf_merge.py --input_paths report1.pdf report2.pdf appendix.pdf --output_path complete_report.pdf

注意事项

  • 输入文件按顺序合并
  • 不存在的文件会被跳过并显示警告
  • 输出目录不存在时会自动创建