wood burning stoves 2.0*
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: 41184
    
  45
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: 41184
    
  45
Assuming that you didn't post the entire stack trace, you may be running into this. Try the advice from Paulo Soares.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: iText: java.io.IOException when using PdfStamper
 
Similar Threads
java program to add digital signature into a pdf file
iText: Digital signature
java program to password protect a signed pdf file using itext pdfstamper
Page Count in PDF document
cant find file error