Life Skills, Tutorial, Ubuntu

HOW TO COMPRESS BIG PDFS IN UBUNTU

When someone sends a PDF that’s too huge, just navigate to the directory, and run this command:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=name_of_compressed_OUTPUT_file.pdf name_of_UNcompressed_INPUT_file.pdf

For even smaller files and lower resolution of 150dpi, just change the /prepress part to /ebook

SPEED TIP: to quickly get the path in your terminal so you can cd to it quickly, just touch an icon in the desired path destination folder, right click on it and copy/paste it into the terminal with control+shift+v. Then just remove the file name at the end before the final path slash and put a cd at beginning.

This runs software called ghost script (gs) I believe and gives amazing results.

Hope this helps!

Tagged , ,

Leave a Reply

Your email address will not be published. Required fields are marked *