← 返回
AI智能 中文

PR's PDF Agent

Self-hosted PDF operations and conversions with metered usage output.
自托管PDF操作与转换,支持计量用量输出。
cap-txt
AI智能 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 723
下载
💾 130
安装
1
版本
#convert#latest#ocr#pdf

概述

PDF Agent

Summary

  • Use pdfagent to perform PDF operations (merge, split, compress, convert, OCR, etc.) with detailed usage metering in the output.
  • Best for local, self-hosted processing where inputs/outputs must stay on disk.
  • This skill ships source code in pdfagent/ and runs via uv run from scripts/pdfagent_cli.py (no PyPI publish required).

Requirements

  • uv installed and on PATH.
  • System tools as needed by specific commands: qpdf, ghostscript, poppler (pdftoppm), libreoffice, chromium (for HTML -> PDF), and ocrmypdf.

Core Usage

  • Merge PDFs with usage metrics:

uv run {baseDir}/scripts/pdfagent_cli.py merge file1.pdf file2.pdf --out merged.pdf --json

  • Split a PDF by ranges:

uv run {baseDir}/scripts/pdfagent_cli.py split input.pdf --range "1-3,5" --out-dir out_dir --json

  • Compress a PDF with a preset:

uv run {baseDir}/scripts/pdfagent_cli.py compress input.pdf --preset ebook --out compressed.pdf --json

  • Convert images to PDF:

uv run {baseDir}/scripts/pdfagent_cli.py jpg-to-pdf image1.jpg image2.png --out output.pdf --json

  • OCR a scanned PDF:

uv run {baseDir}/scripts/pdfagent_cli.py ocr scan.pdf --lang eng --out scan_ocr.pdf --json

  • Agent mode for multi-step instructions:

uv run {baseDir}/scripts/pdfagent_cli.py agent "merge then rotate 90 degrees every other page" -i file1.pdf -i file2.pdf --out out.pdf --json

  • Dependency/binary check:

uv run {baseDir}/scripts/pdfagent_cli.py doctor --json

Notes

  • Use --json for machine-readable outputs (includes usage and outputs).
  • For encrypted PDFs, pass --password or per-file --passwords.
  • If a conversion tool is missing, pdfagent may use a fallback path and will note it in output or logs.
  • Optional Python deps are still command-specific:

uv run --with pdf2docx --with camelot-py[cv] --with pdfplumber --with pyhanko {baseDir}/scripts/pdfagent_cli.py ...

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 11:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,905
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,697
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 833 📥 212,776