compres pdf linux code example
Example 1: how to compress pdf in linux
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf
Example 2: linux compress a pdf
ps2pdf large.pdf small.pdf