pdftk将pdf拆分为多个页面,但总大小增加了 [英] pdftk split pdf with multiple pages but total size grew

查看:344
本文介绍了pdftk将pdf拆分为多个页面,但总大小增加了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用php,我必须将其中具有多个页面的单个pdf文件拆分为大量的PDF文件,每个文件包含一页. 我使用pdftk并可以正常工作,但是为每个页面创建的每个pdf都非常大.我原来的PDF是7MB(内部有70页),用pdftk分割创建的每个文件的总和超过70MB.

with php i have to split a single pdf file with multiple pages inside it to a lot of PDF file with one page per file. I use pdftk and works fine, but every pdf created for every page is very large size. My original PDF is 7MB (with 70pages inside), the sum of every file created by splitting with pdftk is over 70MB.

有人知道是否要为pdftk设置一个属性以使其具有较小的文件输出吗?

Someone know if there is a property to set for pdftk to have small file output?

推荐答案

您始终可以指定compress选项-例如:

You could always specify the compress option - for example:

pdftk input.pdf burst output output_%02d.pdf compress

请注意,pdftk只是将PDF文件的内容从输入复制到输出中,并不能做很多事情来优化膨胀效果.因此,如果您输入的PDF很大/很复杂,那么您的输出PDF也会很大.还要注意,文档中嵌入的所有字体最终可能会在每个输出文档中重复出现,从而占用更多空间.

Note that pdftk just copies the content of your PDF files from the inputs into the outputs, and can't do very much to optimize away bloat. So if your input PDFs are large/complicated, your output PDFs will be also. Also note that any fonts embedded in the document may end up being duplicated in each output document, taking up more space.

这篇关于pdftk将pdf拆分为多个页面,但总大小增加了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆