最佳答案
我发现这个简洁的命令可以使用 Ghostscript 将多个 PDF 合并为一个:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf
最终得到的大小小于两个 PDF 的合并大小。
以单个文件作为输入运行该命令仍然会导致输出文件的大小变小。
Ghostscript 上是否有一个选项,可以只复制合并时出现的页面,而不进行任何压缩?
如果不是,Ghostscript 压缩是否有可能如此之好,以至于完全不会导致质量损失?