Thanks Elmar....but my problem persists, that is, I am able too to extends FileOutputStream and counting bytes after writing them, ok. But now my problem is in RTF, in fact I've noticed that in it, the real bytes are written to stream, after document.close() method, and I'm not understanding why.
My issue is simple with words, in fact I have to find a way to split one RTF (or PDF) in many sub files if it is becoming too big. Do you know other mechanisms? Thanks again and best regards. Raffaele -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Schalück, Elmar Sent: mercoledì 23 aprile 2008 12.21 To: [email protected] Subject: Re: [iText-questions] Get byte count during pdf generation? >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 ------------------------------------------------------------------------- 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
