Ubuntu 下 PDF 合并/压缩工具 gs
linux下可以直接用命令进行PDF的原生操作
使用命令:gs(GhostScript)
官网:https://www.ghostscript.com/
安装该命令:sudo apt-get install gs
合并多个PDF为1个
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=target.pdf -dBATCH 1.pdf 2.pdf ... n.pdf
单个PDF压缩
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS 参数描述:
/prepress :质量最好,文件最大
/printer :打印模式,推荐压缩
/ebook : 电子书模式,适合文本
/screen :文件最小,不推荐
Tags : linux , PDF , linux压缩PDF , linux合并PDF
Previous post
Linux 下 PDF 和 JPG 相互转换
Next post
CentOS 7 minimal 安装后的网络配置