← 返回
未分类 中文

pdfly-cli

A pure-python CLI application for manipulating PDF files. Use when needing to compress, merge, split, rotate, sign, extract images/text, or convert files to/...
纯Python命令行工具,用于操作PDF文件。适用于压缩、合并、拆分、旋转、签名、提取图片/文本,或进行文件转换等。
overdue-lin overdue-lin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 285
下载
💾 0
安装
1
版本
#latest

概述

pdfly CLI Skill

A pure-python CLI for PDF manipulation built on pypdf, fpdf2, and endesive.

Installation

pip install pdfly
# or with uv
uvx pdfly --help

Quick Reference

CommandDescription
----------------------
pdfly compress IN OUTLossless compression
pdfly cat IN [PAGES]... -o OUTMerge/split pages
pdfly rm IN [PAGES]... -o OUTRemove pages
pdfly rotate -o OUT IN DEG [PGRGS]Rotate pages
pdfly sign IN --p12 CERT [-o OUT]Sign PDF
pdfly check-sign IN --pem CERTVerify signature
pdfly meta IN [-o FORMAT]Show metadata
pdfly pagemeta IN IDX [-o FORMAT]Page details (0-based)
pdfly extract-images INExtract images
pdfly extract-text INExtract text
pdfly extract-annotated-pages IN [-o OUT]Extract annotated
pdfly uncompress IN OUTDecompress streams
pdfly update-offsets IN [-o OUT]Fix offsets
pdfly 2-up IN OUT2-up layout
pdfly booklet IN OUT [-b FILE] [-c FILE]Booklet layout
pdfly x2pdf [FILES]... -o OUTConvert to PDF

Output Formats (meta/pagemeta)

-o text   # Default
-o json
-o yaml

Page Range Syntax

See references/page-ranges.md for full syntax including negative indices and strides.

PDF Signing

See references/sign.md for complete signing/verification workflow.

Rotate Command

The -o/--output option is required and must come before positional arguments:

pdfly rotate -o output.pdf input.pdf 90 "1-3"

See references/rotate.md for full examples.

Extract/Merge (cat)

See references/cat.md for complex merge/split operations.

Key Libraries

LibraryPurpose
------------------
pypdfPDF reading/writing, page manipulation
fpdf2Creating PDFs from images/text
endesivePDF signing with PKCS12
pillowImage processing
cryptographyCryptographic operations

Exit Codes

  • 0 = Success
  • 1 = Error (file not found, invalid input, etc.)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 18:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

claw-local-knowledge

overdue-lin
本地知识库技能,用于添加(docx/pdf/xlsx/pptx)或检索知识。
★ 1 📥 707
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 937 📥 188,060
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 476 📥 158,078