360 Secure SkillHub
360 安全技能中心

print-helper

该 Skill 通过 Python 脚本调用 SumatraPDF 静默打印本地 PDF、图片和 Office 文档,可指定份数、双面与页码范围;无自动双面打印机时先打印奇数页,等待后打印偶数页。附带图片转 PDF 脚本,主要面向 Windows 环境。

分类:自动化
147258xuan
147258xuan
热度 4.01
最近更新 2026-11-13 18:46:17

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 147258xuan/print-helper
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
print-helper
description
打印本地文件。支持PDF、图片、Office文档;可指定份数、双面、页码范围。

Print Helper

Use for printing local files with optional manual duplex.

Workflow

  1. Inspect file existence and type.
  2. If duplex requested and no auto-duplex printer:
    • Print odd pages immediately.
    • Wait for flip delay (--flip-seconds, default 30).
    • Print even pages immediately.
  3. Otherwise print normally.

Commands

python skills/print-helper/scripts/print_pdf.py --file "<path>" --duplex --flip-seconds 60

Notes

  • Uses SumatraPDF for silent printing. Install from https://www.sumatrapdfreader.org/ if not found.
  • Default flip delay is 60 seconds. Adjust with --flip-seconds.
  • For Office docs, use Start-Process -Verb Print (no silent option).