Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Preview.app increases PDF file size after deleting pages

Hello, I'm experiencing odd behavior with Preview.app and PDFs.

If I open a PDF with Preview, delete a page, then save the file, the file size increases anywhere form 2x to 20x. This happens both with PDFs that only contain text and PDFs that contain text and graphics. It is very frustrating because I start with a file that is 150KB, remove some pages and end up with a 10MB monster that I can't email to people.

Any help is appreciated. I can post a link to a test PDF for people to try to replicate with if it would be useful.

mac pro, Mac OS X (10.5.2)

Posted on Apr 9, 2008 7:44 AM

Reply
Question marked as Best reply

Posted on Apr 10, 2008 5:25 PM

I experimented a little and the problem seems to be with the PDFKit that is part of Quartz. I wrote a program using the framework that just opens a pdf, deletes the first page, then saves it. Same behavior: around 10x increase in file size.
5 replies

Apr 10, 2008 8:02 PM in response to Malcolm Rayfield

I generated the file with pdftex. I'm guessing that there must be different ways to encode a PDF and when Preview gets something with an encoding other than that provided by PDFKit, it rewrites the file how it likes. In my case this is increasing the file sizes. I tried finding docs about PDFKit on the Apple developer site, but couldn't find any details about ways of encoding a PDF.

Preview.app increases PDF file size after deleting pages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.