Increase the memory allocated to the JVM. The default 64M are usually too 
little.

Paulo

----- Original Message ----- 
From: "gscac" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, June 09, 2007 5:28 PM
Subject: [iText-questions] Memory issue while adding images in document


>
> I am adding 100 images into the pdf document. After adding 90 images, the
> program throws outof memory exception.
>
> for(int i = 0; i<100;i++){
> Image img = Image.getInstance(url) ;
> document.add(img);
> }
>
> How can I avoid this memory issue?


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to