Sorry about the **SPAM** header in the last message. I have a client side
spam filter that prepends that to the subject of any suspected spam. For
some reason, list messages always get flagged, and I forgot to remove it in
the last message.
--jim
I know this problem well (I spend 3 full days trying to track it down).
My guess is that you are using IE 5.5. The problem is with the browser not
iText and not the version of windows. There is a problem with IE 5.5 (works
fine in IE 5 and IE 6) that it tries to download pdf's into its local
use a ByteArrayOutputStream instead of a FileOutputStream
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfWriter.getInstance(document, baos);
- Original Message -
From: Pasha Mahaboob [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 11:30 AM
Subject:
On first glance it looks like your PdfGraphics2D creates and disposes are
mismatched. You create one before the for loop. If there are more pages, you
dispose it and create a new one. This new one never gets disposed though. I
think this code below should fix it:
/**
*
Some quick points of comparison on the 2 pieces of code so far:
- My code uses a PdfTemplate as the basis of the Graphics context; I think
this is a more flexible solution than writing directly to a PdfContentByte
obtained from the PdfWriter, since the template can then be used in
multiple