cPDF

Command line utility that simplifies the use of Ghostscript to compress PDF files

Python Linux, macOS, FreeBSD maintained

Overview

cPDF is a command-line based utility that simplifies the use of Ghostscript to compress PDF files. Written in Python, it provides an easy-to-use interface for PDF compression tasks.

Features

  • Simple command-line interface
  • Leverages Ghostscript for reliable PDF compression
  • Cross-platform support (Linux, macOS)
  • Fast and efficient compression
  • Multiple compression quality levels

Usage

python cpdf.py input.pdf output.pdf

Requirements

  • Python 3.x
  • Ghostscript