Re: [iText-questions] File does not begin with %PDF

2002-06-13 Thread jim moore
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

Re: **SPAM** [iText-questions] File does not begin with %PDF

2002-06-13 Thread jim moore
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

Re: [iText-questions] Open the PDF file

2002-05-23 Thread jim moore
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:

Re: [iText-questions] PdfGraphics2D: unbalanced save/Restore Exception

2002-04-22 Thread jim moore
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: /** *

Re: PdfGraphics2D class (RE: [iText-questions] generating graphs)

2002-04-10 Thread jim moore
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