Quoting "Joshi, Ramakant" <[EMAIL PROTECTED]>:

> I need the size in bytes, I see a getPdfSize which returns the size as a
> rectangle object.

If you send everything to a FileOutputStream,
you can use JAVA methods to get the size in bytes.
As a workaround for browsers, a ByteArrayOutputStream is used.
ByteArrayOutputStream also has a method size() to know
how many byte have to be sent to the browser.

The general idea is that you don't ask iText how many
bytes are generated, you ask the OutputStream.

br,
Bruno


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to