pdftk compression option

前端 未结 10 1104
一向
一向 2020-12-04 04:55

I use pdftk to compress a pdf using the following command line

pdftk file1.pdf output file2.pdf compress

It works as the w

10条回答
  •  不思量自难忘°
    2020-12-04 05:56

    The one-line pdf2ps option (by Lee) actually increased the pdf size. However, the two steps one did better. And it can be combined in a single one using redirection from & to standard input/output and pipes:

    pdf2ps large.pdf - | ps2pdf - small.pdf

    did reduce a PDF generated by xsane from 18 Mo to 630 ko!

    Links are lost, but for the present example, it's not a concern... and was the easiest way to achieve the desired result.

提交回复
热议问题