linux compress pdf file size 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: pdf compressor linux
ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf