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
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.
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
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.
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
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
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
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
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
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
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
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
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
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
, 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
, 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
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:
17 matches
Mail list logo