I tired following the tutorial and passed a ByteOutputStream to PdfWriter
and then wrote that to a ServletOutputStream.  Ofcourse I had to use
setContentSize passing the length of my ByteOutputStream using its size
method like the tutorial said but I got a ProtocolException saying that I
exceeded the stated content length.  I eventually got it to work by playing
with fudge factors.  The fudge factor that worked was to add 100 to my
length so I guess I'm happy.  However, I am a little uncomfortable without
having any idea as to why this worked, specifically, why did I need to add
100?




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to