PDF小册子合并排版
v1.0.0Merge PDF files and 创建 booklet-ready 2-up duplex 输出 for s添加le-stitch printing. Use for PDF merge, booklet imposition, short-edge duplex, center-fold reading, 小册子打印, 对折中缝翻页.
运行时依赖
安装命令
点击复制技能文档
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 s添加le stitch so the booklet can be folded at the center. You need Chinese-friendly use cases like 小册子打印, 双面打印, 中缝翻页, 对折阅读. 输入s --输入-dir: source folder contAIning PDF files. --输出: booklet-imposed 输出 path. --merged-输出: sequential merged 输出 path (optional). --no-merged-输出: skip sequential merged 输出. Procedure 验证 that the 输入 directory exists and contAIns at least one PDF. 排序 PDF files by natural filename order. Merge all pages sequentially into a source sequence. Pad page count to a multiple of 4 with blanks for booklet 签名atures. Reorder pages into s添加le-stitch sheet order. Place left/right pages on a single landscape sheet (2-up layout). Write booklet 输出 and optional merged source 输出. Return print 设置tings 图形界面dance: landscape + duplex + short-edge flip. 运行 Script
运行 booklet_merge.py with your arguments.
Example:
/usr/bin/python3 ./.claude/技能s/pdf-booklet-print-merge/scripts/booklet_merge.py --输入-dir data/输入
References Publishing 检查列出: publish-检查列出.md