jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41052
    
  43
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.


Ping & DNS - my free Android networking tools app
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Assuming that you didn't post the entire stack trace, you may be running into this. Try the advice from Paulo Soares.
 
wood burning stoves
 
subject: iText: java.io.IOException when using PdfStamper
 
Similar Threads
Page Count in PDF document
java program to add digital signature into a pdf file
java program to password protect a signed pdf file using itext pdfstamper
cant find file error
iText: Digital signature