pdftk compression option

前端 未结 10 1113
一向
一向 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:48

    I had the same issue and I used this function to compress individual pages which results in the file size being compressed by upto 1/3 of the original size.

    for (int i = 1; i <= theDoc.PageCount; i++)
    {
           theDoc.PageNumber = i;
           theDoc.Flatten();
    }
    

提交回复
热议问题