pdfmin
v1.0.0
Published
A CLI tool to compress PDF using GhostScript
Readme
pdfmin
pdfmin is a CLI tool to compress PDF using GhostScript.
Requirements
GhostScript must be installed on your device !
Install GhostScript on UNIX
sudo apt-get install -y ghostscriptInstall GhostScript on Windows
Go to https://ghostscript.com/releases/gsdnld.html and download the installer corresponding to your Windows version.
Install GhostScript using the installer.
Usage
Compress only one PDF
npx pdfmin ./myFile.pdfCompress multiple specific PDF
npx pdfmin ./myFile.pdf ./myFile2.pdfCompress all PDF in a folder
npx pdfmin ./myFolder/Compress all PDF in multiple folders
npx pdfmin ./myFolder/ ./myFolder2/