Skip to content
Back to skills

Pdfagent

ASecurity

Self-hosted PDF operations and conversions with metered usage output.

  • 33 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
toolspython

Works with

  • cli

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill pdfagent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdfagent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdfagent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-pdfagent/badge)](https://www.skillsdirectory.com/skills/dvcrn-pdfagent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pdfagent
description: "Self-hosted PDF operations and conversions with metered usage output."
---

# 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 <command> ...`

Files in this skill

  • SKILL.md2 KB
  • pdfagent/__init__.py49 B
  • pdfagent/cli.py54.6 KB
  • pdfagent/core/agent.py2 KB
  • pdfagent/core/deps.py576 B
  • pdfagent/core/exec.py1.1 KB
  • pdfagent/core/llm.py2.5 KB
  • pdfagent/core/output.py1.3 KB
  • pdfagent/core/overlay.py886 B
  • pdfagent/core/pdf.py356 B
  • pdfagent/core/ranges.py1.2 KB
  • pdfagent/core/usage.py2.4 KB
  • pdfagent/tools/compare.py1.6 KB
  • pdfagent/tools/compress.py1.3 KB
  • pdfagent/tools/crop.py1.2 KB
  • pdfagent/tools/edit.py1.6 KB
  • pdfagent/tools/html_to_pdf.py2.9 KB
  • pdfagent/tools/images.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.