aspose file tools*
The moose likes Other Open Source Projects and the fly likes iText: java.io.IOException when using PdfStamper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "iText: java.io.IOException when using PdfStamper" Watch "iText: java.io.IOException when using PdfStamper" New topic
Author

iText: java.io.IOException when using PdfStamper

Maduka Jayawardana
Greenhorn

Joined: May 15, 2014
Posts: 1

I wrote a program for generating a pdf. When I try to add a bookmark to existing pdf using a map I got an error. I set the Max heap to 1024mb but it didn’t work.

this is my code





this is the error.




How to solve this problem?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42931
    
  68
Welcome to JavaRanch.

I set the Max heap to 1024mb but it didn’t work.

I don't see anything about the error message that indicates memory problem, so I wouldn't have expected this to make a difference.

at com.km.coreirm.client.reportNew.ReportFunctionFrm.getVisualCertificate(ReportFunctionFrm.java:2614).

There's a class with more than 2600 lines of code? It seems some serious refactoring is in order.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42931
    
  68
Assuming that you didn't post the entire stack trace, you may be running into this. Try the advice from Paulo Soares.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iText: java.io.IOException when using PdfStamper