PDF¶ ghostscript¶ 安装 1sudo apt install ghostscript 压缩 1 2 3 4 5 6# 按电子书比例压缩 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.0 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf # 自定义分辨率为 120 dpi gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true -dColorImageResolution=120 \ -dNOPAUSE -dBATCH -sOutputFile=output.pdf input.pdf 其他¶ 1 2 3# 剪切文件 # And you can extract pages 1 - 5 of input.pdf by using the first-page and last-page flags, -f 1 -l 5, pdfseparate -f 1 -l 5 input.pdf output-page%d.pdf Split PDF document from command line in Linux? 参考 Reduce PDF File Size in Linux How can I reduce the file size of a scanned PDF file? https://www.ilovepdf.com/ 作者: aisuhua