DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to merge, compress and rotate PDFs in a script with the CLI with Paper Pilot

Use the paperpilot CLI for repeatable batch jobs such as merging monthly statements or shrinking scans.

Short answer: Install the CLI from Releases or build it with cargo; then Merge files with paperpilot merge --inputs doc1.pdf doc2.pdf --output merged.pdf; Shrink the result with paperpilot compress --input in.pdf --quality 75 --output compressed.pdf. All steps.

Who it is forAn office worker or ops person who processes the same kinds of PDFs every week.

The problemDoing the same merge and compress steps in a GUI every week is slow and error prone.

The outcomeA small script that merges, compresses and rotates PDFs the same way every time.

What you need first

  • The paperpilot or paperpilot-mcp binary from GitHub Releases, or Rust 1.75+ to build from source
  • An MCP client such as Claude Code, Codex, Cursor or Claude Desktop for agent use
  • Node.js and pnpm only for the desktop app

Steps

  1. Install the CLI from Releases or build it with cargo
  2. Merge files with paperpilot merge --inputs doc1.pdf doc2.pdf --output merged.pdf
  3. Shrink the result with paperpilot compress --input in.pdf --quality 75 --output compressed.pdf
  4. Fix scanned pages with paperpilot rotate --input in.pdf --pages 1,3-5 --angle 90 --output out.pdf
  5. Wrap the commands in a shell script for your weekly batch

Prompt for your agent

Write a shell script that uses KrushnaVardhanReddy/PaperPilot's CLI to merge every PDF in <folder> in name order, compress the result at quality 75 and save it as <output.pdf>.

Caveat. This card is written from the KrushnaVardhanReddy/PaperPilot README, not from a test run by Deduped. Before you start, make sure you have the paperpilot or paperpilot-mcp binary from GitHub Releases, or Rust 1.75+ to build from source. Check the repo for newer instructions before you rely on these steps.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for KrushnaVardhanReddy/PaperPilot and "Merge, compress and rotate PDFs in a script with the CLI"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer