Re: [iText-questions] Possible File Resource Leak

2006-01-09 Thread John Pruitt
Thanks for the thought, however I am not using the JAI class. What I am doing is more like: FileOutputStream fout = new FileOutputStream(file); TIFFEncodeParam param = new TIFFEncodeParam(); TIFFImageEncoder enc = new TIFFImageEncoder(fout, param); enc.encode(bufferedImage);

Re: [iText-questions] Possible File Resource Leak

2005-12-20 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Pruitt wrote: > Actually, I am converting pdfs to tiff. We have a special case where our > pdfs all consist of full-page images. I use iText to get to the image > streams in the pdf, and use JAI to encode the images to tiff. The problem may not b

RE: [iText-questions] Possible File Resource Leak

2005-12-20 Thread Paulo Soares
> -Original Message- > From: John Pruitt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 20, 2005 5:19 PM > To: Paulo Soares > Cc: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Possible File Resource Leak > > To create t

Re: [iText-questions] Possible File Resource Leak

2005-12-20 Thread John Pruitt
mailto:[EMAIL PROTECTED] Sent: Tuesday, December 20, 2005 4:38 PM To: Paulo Soares Cc: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Possible File Resource Leak Actually, I am converting pdfs to tiff. We have a special case where our pdfs all consist of full-page images. I

RE: [iText-questions] Possible File Resource Leak

2005-12-20 Thread Paulo Soares
ally { > >if (ra != null) > >ra.close(); > >} > > > >It will make sure that the file is closed if some exception > is throwned. > > > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > &

RE: [iText-questions] Possible File Resource Leak

2005-12-20 Thread Paulo Soares
ts.sourceforge.net > Subject: [iText-questions] Possible File Resource Leak > > I have a program that basically batch converts pdfs to > multi-page tiffs > using iText. I am running into a problem. In my testing, I had the > program batch convert 12,000 pdf files to multi-page t

Re: [iText-questions] Possible File Resource Leak

2005-12-20 Thread John Pruitt
PROTECTED] On Behalf Of John Pruitt Sent: Tuesday, December 20, 2005 3:15 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Possible File Resource Leak I have a program that basically batch converts pdfs to multi-page tiffs using iText. I am running into a problem. In my

[iText-questions] Possible File Resource Leak

2005-12-20 Thread John Pruitt
I have a program that basically batch converts pdfs to multi-page tiffs using iText. I am running into a problem. In my testing, I had the program batch convert 12,000 pdf files to multi-page tiff. The program worked like a charm for 8 hours, then it hit an exception: "To many open files." The