← 返回 Skills 市场
ninjahwdragon

PDF小册子合并排版

作者 ninjahwdragon · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
97
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pdf-booklet-print-merge
功能描述
Merge PDF files and create booklet-ready 2-up duplex output for saddle-stitch printing. Use for PDF merge, booklet imposition, short-edge duplex, center-fold...
使用说明 (SKILL.md)

PDF Booklet Print Merge

When To Use

  • You need to merge multiple PDF files into one source file.
  • You need a booklet print layout (2 pages per sheet, landscape, duplex).
  • You want pages reordered for saddle stitch so the booklet can be folded at the center.
  • You need Chinese-friendly use cases like 小册子打印, 双面打印, 中缝翻页, 对折阅读.

Inputs

  • --input-dir: source folder containing PDF files.
  • --output: booklet-imposed output path.
  • --merged-output: sequential merged output path (optional).
  • --no-merged-output: skip sequential merged output.

Procedure

  1. Validate that the input directory exists and contains at least one PDF.
  2. Sort PDF files by natural filename order.
  3. Merge all pages sequentially into a source sequence.
  4. Pad page count to a multiple of 4 with blanks for booklet signatures.
  5. Reorder pages into saddle-stitch sheet order.
  6. Place left/right pages on a single landscape sheet (2-up layout).
  7. Write booklet output and optional merged source output.
  8. Return print settings guidance: landscape + duplex + short-edge flip.

Run Script

Run booklet_merge.py with your arguments.

Example:

/usr/bin/python3 ./.claude/skills/pdf-booklet-print-merge/scripts/booklet_merge.py --input-dir data/input

References

安全使用建议
This skill appears coherent and implements exactly what it says: merging PDFs and producing a booklet-layout PDF. Before installing/running: (1) ensure you have Python 3.9+ and install the pypdf version indicated (pip install pypdf) in a controlled environment (virtualenv or container); (2) point --input-dir to the intended folder — the script will read all .pdf files there and write outputs under the specified paths (default data/output); (3) confirm there are no sensitive PDFs in the input directory you didn't intend to process; (4) run a quick smoke test with harmless sample PDFs to verify layout. If you want extra assurance, review the bundled scripts yourself (they are short and self-contained) and run them in an isolated environment.
功能分析
Type: OpenClaw Skill Name: pdf-booklet-print-merge Version: 1.0.0 The skill bundle provides a legitimate utility for merging PDF files and reordering pages for booklet printing (saddle-stitch). The Python script (scripts/booklet_merge.py) uses the standard 'pypdf' library for PDF manipulation and follows safe coding practices, using pathlib for file handling and avoiding dangerous functions like eval or subprocess. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description describe PDF merge + booklet imposition and the included script implements exactly that: it reads PDFs from an input directory, merges/reorders pages, composes 2-up sheets, and writes output files. No unrelated capabilities (cloud, remote APIs, secret access) are requested.
Instruction Scope
SKILL.md instructs running the bundled Python script with an input directory and optional merged output; the instructions do not ask the agent to read unrelated files, environment variables, or contact external endpoints. All referenced paths are local and consistent with the code.
Install Mechanism
This is an instruction-only skill with a bundled script and no install spec. The README (references) notes a runtime dependency on pypdf (pip). That missing explicit install step is not malicious but users must install pypdf (and have Python 3.9+) before running; no remote archives or unknown URLs are used.
Credentials
No environment variables, credentials, or config paths are requested. The script operates on local input/output paths only, which is proportionate to the stated function.
Persistence & Privilege
Skill is not always-enabled, does not request persistent system-wide changes, and does not modify other skills' configuration. It only reads from the specified input directory and writes output files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pdf-booklet-print-merge
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pdf-booklet-print-merge 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of pdf-booklet-print-merge. - Merge multiple PDF files into a single document. - Generate booklet-ready 2-up duplex PDFs for saddle-stitch, center-fold reading. - Support for page padding and correct imposition order. - Chinese-friendly booklet print workflows (e.g., 小册子打印, 中缝翻页). - Flexible command-line arguments for input, output, and print settings guidance. - provided by Huilong YE.
元数据
Slug pdf-booklet-print-merge
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

PDF小册子合并排版 是什么?

Merge PDF files and create booklet-ready 2-up duplex output for saddle-stitch printing. Use for PDF merge, booklet imposition, short-edge duplex, center-fold... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。

如何安装 PDF小册子合并排版?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pdf-booklet-print-merge」即可一键安装,无需额外配置。

PDF小册子合并排版 是免费的吗?

是的,PDF小册子合并排版 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PDF小册子合并排版 支持哪些平台?

PDF小册子合并排版 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PDF小册子合并排版?

由 ninjahwdragon(@ninjahwdragon)开发并维护,当前版本 v1.0.0。

💬 留言讨论