Re: [iText-questions] OutOfMemory using PdfGraphics2D

2012-12-20 Thread Paco (Dem)
I solved my issue using PdfStamper: Open the pdf file, stamp a bunch of shapes (over 100.000), save and close the file. Repeat with more shapes. Maybe is not elegant, but worked for me. It keep crashing with one million elements but I don't need so many elements to be exported. Thank you.

[iText-questions] OutOfMemory using PdfGraphics2D

2012-12-04 Thread Paco (Dem)
Thank you for your reply, Paulo. Regards. On Tue, Dec 4, 2012 at 7:41 AM, itext-questions-requ...@lists.sourceforge.net wrote: You are using an old iText version that is not supported. Anyway, with 250.000 shapes into a 5x5 meters PDF sheet you may need gigas of heap space, no miracles

[iText-questions] OutOfMemory using PdfGraphics2D

2012-12-03 Thread Paco (Dem)
Hello: I'm trying to draw 250.000 shapes into a 5x5 meters PDF sheet using PdfGraphics2D. And I'm getting an OutOfMemoryError. The stack is: 03/12/2012 12:21:51 ERROR root:197 - java.lang.OutOfMemoryError: Java heap space 03/12/2012 12:21:51 ERROR root:197 - at

Re: [iText-questions] OutOfMemory using PdfGraphics2D

2012-12-03 Thread Paulo Soares
You are using an old iText version that is not supported. Anyway, with 250.000 shapes into a 5x5 meters PDF sheet you may need gigas of heap space, no miracles here, everything will be in memory before being written to disk. Paulo On Mon, Dec 3, 2012 at 12:02 PM, Paco (Dem) egodemiu...@gmail.com