pdftk split pdf with multiple pages but total size grew

Simone M picture Simone M · Nov 15, 2013 · Viewed 41.9k times · Source

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.

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

Answer

pobrelkey picture pobrelkey · Nov 15, 2013

You could always specify the compress option - for example:

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

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.