>Date: Wed, 23 Apr 2008 10:53:37 +0200 >From: "GAMBELLI Raffaele" <[EMAIL PROTECTED]> >Subject: [iText-questions] Get byte count during pdf generation? >To: <[email protected]> >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset="iso-8859-1" > >Hi all, >is there a way to retrieve bytes count while pdf is generated? > >For example, inside a loop where I add a table to Document, I would like to >know how many bytes are written to the stream. > >I tried getting Channell from FileOutPutStream and asked him for its size, but >it says always 0. > >Any hint? >Thanks and best regards. >Raffaele
http://commons.apache.org/io/api-release/org/apache/commons/io/output/CountingOutputStream.html Use that one, it works for any output stream and encapsulated it for counting. Regards Elmar ------------------------------------------------------------------------- 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
