Hi, Howard has gone into the details of why different RTF creators create different documents and thus different document sizes. I agree with Howard, that you should repeat your test with Word and then compare the sizes for a more realistic test.
There is a setting in the RtfDocumentSettings that controls line-break output. Unfortunately it is only checked in very few places. This is something I'll look into when I find time. In the meantime you could simply run the final document through a post-processor and try removing the line-breaks. You'll certainly see space savings, but I can't guarantee that the document will still work after that. Greetings, Mark On Wednesday 30 April 2008, GAMBELLI Raffaele wrote: > Hi all, hi Mark, > > My users, have let me know that an RTF produced with Itext, if opened with > WordPad and resaved, its size becomes very smaller than the original itext > version. > > Perhaps, could one reason be due from the newline characters inserted at > the end of almost each tag? And so, in documents very very big, those > newline have a big weight in global document size? > > In your opinion Mark, are there any possible reasons? > > Thanks in advance, best regards. > Raffaele > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Do you like iText? > Buy the iText book: http://www.1t3xt.com/docs/book.php > Or leave a tip: https://tipit.to/itexttipjar -- All replies must be addressed to the mailing list. Any replies/questions not addressed to the mailing list will be ignored.
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
