I did not receive the original reply. I see the reply now on gmane. (Thanks for that, Bart. I think this must go a long way to explaining the problem).
My second point still stands though. itext seems to behave differently from Acrobat. Original page count = 750 Original PDF size = 50 MB Page size after splitting with Acrobat = 0.5 MB Page size after splitting with itext = 10 MB If I first extract (using Acrobat) just 50 pages: Original page count = 50 Original PDF size = 3 MB Page size after splitting with Acrobat = 0.5 MB Page size after splitting with itext = 3 MB If I take just 5 pages to start with: Original page count = 5 Original PDF size = 1 MB Page size after splitting with Acrobat = 0.5 MB Page size after splitting with itext = 1 MB The correlation between the size of the original PDF and the ultimate size of the single page occurs only with itext, and not with Acrobat. Will -------- Original Message -------- Subject: Re: [iText-questions] Splitting into single pages size problem Date: Fri, 24 Aug 2007 15:07:49 +0200 From: Bruno Lowagie (iText) <[EMAIL PROTECTED]> To: Post all your questions about iText here <[email protected]>, [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> Will Simpson wrote: > I wondered if there is something odd about the original PDF. Has anyone > else experienced anything similar? This question has already been answered. Let me adapt a small example I used in the book. It's elementary math. Suppose you have a resource that is 1KB, and you need to produce a PDF with that resource and 0.1KB of data on each page. Then the resulting PDF will be approximately: (100 x 0.1) + 1 KB = 11 KB. If you burst this PDF, you'll end up with 100 pages that each have the 1KB resource and the 0.1KB content. That's approximately: (1KB + 0.1KB) x 100 = 110 KB. This resource could be anything: an image, a font, some recurring PDF syntax. That's what the original answer implied. There's nothing mysterious about it. What part of the answer was unclear to you? br, Bruno -- Will Simpson, Senior Software Engineer, Semantico, Floor 1, 21-23 Dyke Road, Brighton BN1 3FE <http://www.semantico.com/> <mailto:[EMAIL PROTECTED]> <tel:+44-1273-358228> <fax:+44-1273-723232> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
