Hi Folks,

I¹m creating PDFs from different type of images (jpg, gif, tiff) and noticed
that when calling Image.getInstance(String file), the entire image is copied
into memory. The memory is released after I import the image.

Looking through the email archive for advice on how to deal with large
images I came across this post from March 2007:

http://itext-general.2136553.n4.nabble.com/Out-of-Memory-with-Large-Image-td
2150214.html

In there, Paulo Soares indicated that iText stores the image in a byte array
and this was ³a problem that sooner or later will have to be addressed². In
another follow up reply, Paulo indicated that doing so was ³not a current
priority².

Moving forward to September 2011, I¹m using the latest release 5.1.2 and the
issue still exists. As of today, is there any work done to avoid copying
images in memory? Does anyone have some recommendations on how to deal with
large files other than increasing the JVM heap size? Mine is a
multi-threaded application, where there is the potential for multiple
threads requesting PDFs created from large images.

Thanks,

David.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to