{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "krushnavardhanreddy-paperpilot--batch-merge-and-compress-pdfs-from-the-command-line",
 "repo": "KrushnaVardhanReddy/PaperPilot",
 "repo_url": "https://github.com/KrushnaVardhanReddy/PaperPilot",
 "repo_slug": "krushnavardhanreddy-paperpilot",
 "title": "Merge, compress and rotate PDFs in a script with the CLI",
 "page_title": "How to merge, compress and rotate PDFs in a script with the CLI with Paper Pilot",
 "summary": "Use the paperpilot CLI for repeatable batch jobs such as merging monthly statements or shrinking scans.",
 "who": "An office worker or ops person who processes the same kinds of PDFs every week.",
 "problem": "Doing the same merge and compress steps in a GUI every week is slow and error prone.",
 "outcome": "A small script that merges, compresses and rotates PDFs the same way every time.",
 "steps": [
  "Install the CLI from Releases or build it with cargo",
  "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`",
  "Fix scanned pages with `paperpilot rotate --input in.pdf --pages 1,3-5 --angle 90 --output out.pdf`",
  "Wrap the commands in a shell script for your weekly batch"
 ],
 "agent_prompt": "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>.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "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.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "rust",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/krushnavardhanreddy-paperpilot/batch-merge-and-compress-pdfs-from-the-command-line/",
 "md": "https://dedupedai.com/use-cases/krushnavardhanreddy-paperpilot/batch-merge-and-compress-pdfs-from-the-command-line/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/krushnavardhanreddy-paperpilot--batch-merge-and-compress-pdfs-from-the-command-line.json",
 "api_version": "v1"
}
