← Back to Skills Marketplace
ninjahwdragon

PDF小册子合并排版

by ninjahwdragon · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
97
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pdf-booklet-print-merge
Description
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...
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pdf-booklet-print-merge
  3. After installation, invoke the skill by name or use /pdf-booklet-print-merge
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug pdf-booklet-print-merge
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.

How do I install PDF小册子合并排版?

Run "/install pdf-booklet-print-merge" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is PDF小册子合并排版 free?

Yes, PDF小册子合并排版 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does PDF小册子合并排版 support?

PDF小册子合并排版 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created PDF小册子合并排版?

It is built and maintained by ninjahwdragon (@ninjahwdragon); the current version is v1.0.0.

💬 Comments