Re: [iText-questions] OutOfMemoryError extracting large sizedattachment from a pdf

2010-11-19 Thread stefano fontanel
Hi Mark, thank you for your response. You are right, the current implementation uses byte[] and it's not so easy to refactor using streams instead. I've some concern because if we need to process more than a file at the same time we can have OutOfMemoryError for smaller files. I'll add a issue to

Re: [iText-questions] OutOfMemoryError extracting large sizedattachment from a pdf

2010-11-18 Thread Mark Storer
I don't think so, but that's a good idea. Let me see... Ouch. We'd need to decompress and optionally decrypt the bytes on the fly as they were read. Not a quick fix by any stretch. What happens internally, is that we call getStreamBytesRaw, which returns the compressed, decrypted bytes.

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-25 Thread Mike Marchywka
Date: Tue, 24 Mar 2009 21:22:03 -0500 From: name and address withheld from trolls and spammers To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] OutOfMemoryError when PdfTemplate is used Hi Mike, Thanks a lot for your valuable reply. Its working

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used (Pradeep Kumar Badam)

2009-03-24 Thread jmueto
2. I have to create some PDFs with pages at 90 degree rotation which can be done by adding pdfTemplate to pdfContentByte. Try using affine transformation for rotated content. This ist just matrix multiplication - no magic.

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Paulo Soares
Use PdfWriter.releaseTemplate(). Use this method to release the memory used by a template. This method writes the template to the output. The template can still be added to any content but changes to the template itself won't have any effect. Paulo -Original Message- From: Pradeep

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Pradeep Kumar Badam
Hi Paulo, Thanks a lot for your valuable answer. Pradeep -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Tuesday, March 24, 2009 3:50 PM To: Post all your questions about iText here Subject: Re: [iText-questions] OutOfMemoryError when PdfTemplate is used Use

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Pradeep Kumar Badam
Hi Mike, Thanks a lot for your valuable reply. Its working with PdfWriter.releaseTemplate(). Pradeep -Original Message- From: Mike Marchywka [mailto:marchy...@hotmail.com] Sent: Tuesday, March 24, 2009 5:51 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions

Re: [iText-questions] OutOfMemoryError exception, when merging of files reaches 60MB

2007-01-04 Thread Paulo Soares
If you are using PdfCopy update to the latest iText release and call freeReader(). Paulo - Original Message - From: Pravin Kumar Venkatraj [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Thursday, January 04, 2007 6:42 AM Subject: [iText-questions] OutOfMemoryError

Re: [iText-questions] OutOfMemoryError exception, when merging of files reaches 60MB

2007-01-04 Thread Bruno Lowagie
Pravin Kumar Venkatraj wrote: Sir, We are facing problem while merging the PDF files (using iText 1.1) That version is over 2 years old... When the merged PDF reaches 60MB, we are getting java.lang.OutOfMemoryError exception. Have you followed the advice on memory management that is given

Re: [iText-questions] OutOfMemoryError writing rtf

2004-10-20 Thread Mark Hall
On Tuesday 19 October 2004 15:50, [EMAIL PROTECTED] wrote: The following code throws the java.lang.OutOfMemoryError. The purpose of the code is to insert the images from the specified folder into the RTF file. Note that if I change the writer to the PdfWriter all works fine. The images are

RE: [iText-questions] OutOfMemoryError when concatenating large PDF

2004-04-22 Thread Paulo Soares
Free the reader after addTemplate and not before but if you used PdfCopy and it still throws an exception it won't be enough. The size of the pdf doesn't matter, rather the number of pages. You probably need to throw more memory at it. Best Regards, Paulo Soares From: [EMAIL

RE: [iText-questions] OutOfMemoryError when concatenating large PDF

2004-04-22 Thread Michael Toula
Thx for this fast answer ! Free the reader after addTemplate and not before It helps a lot, I don't have my memory pb anymore. Again thank you very much ! Best, Mike ** Michael TOULA Software Engineer Dalim Software GmbH Strassburger Str. 6 D-77694 Kehl

RE: [iText-questions] OutOfMemoryError

2002-12-03 Thread Paulo Soares
The images are always converted to an RGB array and only then eventually converted to bw and compressed. It will always need a lot of memory, even if breafly. The solution depends on the initiall format, PNG can be inserted with the same file size. Best Regards, Paulo Soares -Original

RE: [iText-questions] OutOfMemoryError

2002-12-03 Thread Aaron Kelley
these circumstances without the huge use of memory? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paulo Soares Sent: Tuesday, December 03, 2002 3:47 AM To: 'Aaron Kelley'; [EMAIL PROTECTED] Subject: RE: [iText-questions] OutOfMemoryError The images are always

RE: [iText-questions] OutOfMemoryError

2002-12-03 Thread Paulo Soares
, 2002 15:40 To: 'Paulo Soares'; [EMAIL PROTECTED] Subject: RE: [iText-questions] OutOfMemoryError I was able to get it to work when I provided 350MB of memory to the JVM. This is way too much to actually be useful. I need to manipulate the image, which is natively a tiff, so I

RE: [iText-questions] OutOfMemoryError

2002-12-03 Thread Aaron Kelley
, but it's not the best in the world. Anyway, thank you for your input. Aaron -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 8:57 AM To: 'Aaron Kelley'; [EMAIL PROTECTED] Subject: RE: [iText-questions] OutOfMemoryError The problem here

Re: [iText-questions] OutOfMemoryError

2002-07-11 Thread Paulo Soares
Is a timeout or OutOfMemory? What kind of buffer are you talking about? If you are using tables don't create a big table but rather several small ones. There are several threads about it; search for fitsPage. Best Regards, Paulo Soares - Original Message - From: [EMAIL PROTECTED] To: