A simple batch script for compressing PDF files using Ghostscript.
It helps reduce large PDF sizes π to smaller ones while keeping decent quality β
.
- Easy one-line usage π₯οΈ
- Compresses PDFs under 500KB (depending on input size)
- Uses Ghostscript for high compatibility βοΈ
- Works on Windows π»
-
Install Ghostscript
-
Download from π Ghostscript Downloads
-
Make sure it installs in:
C:\Program Files (x86)\gs\gs10.05.1\bin\(If different, edit the script to match your path.)
example C:(x86)\gs\gs10.05.1\bin\ or example C:(x64)\gs\gs10.05.1\bin\
-
-
Clone this repo:
git clone https://github.com/enyaesystem/pdf-compressor.git