Walter do Valle wrote: > Hello all > > I'm developing a PDF splitter using iText. I used the example in iText > site and my aapliaction works very well. However, I'm in doubt about the > size os files generated. I have a PDF file with 900Kb of size and 88 > pages. When I split this file in 88 files with one page, the sum of all > files generated is about 13Mb. The sum of the parts is much greater than > the size of original file. > Why this is happening?
Suppose you have an PDF with 100 pages. Each page takes has a 99 Kb image and 1 Kb of data. The total size of such a file would be (100 x 1 Kb) + 99 Kb = 199 Kb. Note that the image is stored only once: it is the same on all pages; no need to duplicate. Now you split the PDF into 100 pages. All have 1 Kb of data and an image of 99 Kb. The size of all these files together is 100 x (1 Kb + 99 Kb) = 10,000 Kb Amazing, isn't it. An in my sample, I only talk about an image, I haven't even told you about embedded fonts and other resources. This is elementary logic, dear Walter. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
