New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pdfp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfp

Fast PDF compression for your terminal

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

pdfp

Fast PDF compression for your terminal. Beautiful, interactive CLI tool powered by Ghostscript.

Demo

Installation

npm install -g pdfp

Then run:

pdfp

Prerequisites

Ghostscript is required for PDF compression. It's automatically installed for you, or you can install it manually:

macOS: brew install ghostscript
Linux: sudo apt-get install ghostscript
Windows: Download from ghostscript.com

Features

  • Clean, minimal terminal UI
  • PDF compression with multiple quality presets
  • Multiple quality presets (screen, ebook, printer, prepress)
  • Batch processing support
  • Advanced settings (target size, custom output folder)

Usage

Simply run pdfp and follow the interactive prompts. Compressed files are saved with a -pdfp suffix in the same directory (or your chosen output folder). Run pdfp auto {path_to_pdf} to compress files skipping questions.

License

MIT

Keywords

compress

FAQs

Package last updated on 07 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts