Hello!
I've just been trying to upgrade a API using itext from version 1.2 to 2.1.3. I
sat all up (including iText source) in IntelliJ, but iText throws a RunTime
here:
void addLocalDestinations(TreeMap dest) throws IOException {
for (Iterator i = dest.entrySet().iterator(); i.hasNext();) {
Map.Entry entry = (Map.Entry) i.next();
String name = (String) entry.getKey();
Object obj[] = (Object[]) entry.getValue();
PdfDestination destination = (PdfDestination)obj[2];
if (destination == null)
throw new RuntimeException("The name '" + name + "' has no
local destination.");
if (obj[1] == null)
obj[1] = getPdfIndirectReference();
addToBody(destination, (PdfIndirectReference)obj[1]);
}
}
in PdfWriter.java. This happens upon doing a Document.close().
What could be the problem?
Regards,
Helge Fredriksen
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php