Hello,
I am using I text to print OMR code on the page an existing PDF. The code I
am using looks like this:
PdfContentByte over;
PdfReader reader=new PdfReader(filename);
PdfStamper stamper =new PdfStamper (reader,new
FileOutputStream(fileoutName);
for(int x=1;x<reader.getNumberOfpages();x++) {
over.=stamper.getOverContent(x);
//do some lineto and moveto to print the lines
over.stroke();
}
reader.close();
stamper.close();
The existing pdf contains about 8000 pages.
To run this code I have to increase the Heap size a little bit . That is no
problem. I found that I can only run this code with Itext version
2.1.2U.jar.
If I run it with with version 2.1.3 or 2.1.4 it fails with an "out of memory
error" Increasing the heap memory size here does not help. Error's related
to this phenomena are "Map failed"
If you are looking in windows taskmanager you see the process over time is
consuming a lot of memory and never releasing it again.
Is this an Itext error or do I have to chance my code somewhere?
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php