Compresto Documentation
HomepagePricingChangelogDownload
  • 👋Welcome to Compresto
  • Guides
    • How to activate your license
    • How to compress video
    • How to compress image
    • How to compress gif
    • How to convert video to gif
    • Monitor a folder for automatic compression
    • Integration with Compresto
    • How to find your license key
    • How to reset your license
    • How to setup PDF compression
    • How to show confetti when compression finishes
    • How to resolve error "bad CPU type in executable" on macOS
  • Use cases
    • For Designers
    • For Developers
    • For Content Creators
    • For Digital Marketers
Powered by GitBook
On this page
  • Method 1: Install Ghostscript via Homebrew (Recommended)
  • Method 2: Install Ghostcript via MacPorts
  1. Guides

How to setup PDF compression

PreviousHow to reset your licenseNextHow to show confetti when compression finishes

Last updated 2 months ago

To compress PDFs in Compresto, you must have Ghostscript installed. Developed by Artifex Software, Inc., Ghostscript is the leading PDL conversion and interpreter tool, providing native PDF rendering. To install Ghostscript on macOS, follow one of the methods below.

Method 1: Install Ghostscript via Homebrew (Recommended)

  1. Install Homebrew: https://brew.sh/

  2. Install Ghostscript via Homebrew: https://formulae.brew.sh/formula/ghostscript

Method 2: Install Ghostcript via MacPorts

  1. Install MacPorts: https://www.macports.org/install.php

  2. Install Ghostscript via MacPorts: https://ports.macports.org/port/ghostscript/

Once the installation is done, open the Terminal app and enter which gs

You will see the path of Ghostscript printed as the output

$ which gs
> /opt/local/bin/gs

Then copy the output and set it as the path for Ghostscript

Note: The output of the which gs command may vary depending on the installation method used.