# PDF Compressor

> Compresses a given PDF file to reduce its size.

- Skill: `modbender/pdf-compressor` (Agent Skill, multi-file: 8 files)
- Install (CLI): `npx skillmds@latest add modbender/pdf-compressor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/pdf-compressor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/pdf-compressor

---


# PDF Compressor Skill

This skill is designed to compress a PDF file to reduce its size using standard optimization parameters. It is powered by PyMuPDF and offers three tunable compression levels depending on the user's needs.

## Usage Guide
When using this skill to compress a PDF, you should provide the `pdf_path` (absolute path to the target PDF) and optionally the `compression_level` (from 1 to 3). The skill will return the output path of the newly created compressed PDF.

- **Level 1 (Low)**: Basic compression, fastest.
- **Level 2 (Medium)**: Optimized compression, balanced speed and file size reduction (Default).
- **Level 3 (High)**: Deep optimization for maximum file size reduction.

