Skip to content

FusionFroze/squish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squish

Compress your PDFs in your terminal with a single command. Built on compress-pdf.

Installation

Prerequisite:

  • Node.js v18+
  • Ghostscript - Must be installed and added to system PATH

Install globally:

$ npm i -g @fusionfroze/squish

For local development:

$ npm install
$ npm link

How to use it

Type this command in the directory where the PDF is saved that is to be compressed

$ squish example.pdf

It compresses the PDF and saves it in the same directory appending '_compressed' at the end of the original PDF name.

Compression level

You can choose the compression level by using flags. The flags are as follows -

Options:
    --vl, --vlow   minimal compression, highest quality (300 dpi), best in professional settings, 'prepress' in compress-pdf
    --l, --low     low compression, high quality (300 dpi), best for everyday use, 'printer' in compress-pdf
    --h, --high    medium compression and quality (150 dpi), 'ebook' in compress-pdf
    --vh, --vhigh  highest compression, lowest quality (72 dpi), 'screen' in compress-pdf
    -h, --help     display help for command

Example usage:

$ squish --vh example.pdf

About

Compress your PDFs right in your terminal, with a single command

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors