Skip to content

Bash script for compressing PDF files, based on GhostScript

Notifications You must be signed in to change notification settings

emareg/compressPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

compressPDF

Interactive bash script to reduce the file size of a .pdf file. It works best for scanned documents and documents created with pdfLaTeX.

Observed compression results:

  • Scans: 10% – 60% reduced file size
  • pdfLaTeX: 30% – 80% reduced file size

Features

  • Compress PDF data
  • Select color mode
  • Reduce image DPI

Dependencies

  • GhostScript

Usage

$> ./compressPDF INPUT.pdf [OUTPUT.pdf]

If no output file name is given it will default to output.pdf. If you leave all prompts blank, the script will compress the PDF without any quality loss.

About

Bash script for compressing PDF files, based on GhostScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages