Linux系统里压缩PDF文件大小

  1. sudo apt-get install ghostscript
  2. gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
    其中,-dPDFSETTINGS=/screen 或者 /ebook 或者 /prepress,分别对应着低、中、高三个清晰度的压缩
  3. 或者gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input.pdf 逐页压缩,防止有些页的pdf损坏无法压缩出现bug
    原文作者:SrCMpunk
    原文地址: https://blog.csdn.net/u010946556/article/details/122107269
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞