OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

ClassCastException in SimpleBookmark.getBookmark()

Open ghost opened this issue 9 years ago • 0 comments

I sometimes get the following exception in the latest version of OpenPDF when getting bookmarks from a PDF:

Caused by: java.lang.ClassCastException: com.lowagie.text.pdf.PdfString cannot be cast to com.lowagie.text.pdf.PdfDictionary at com.lowagie.text.pdf.SimpleBookmark.getBookmark(SimpleBookmark.java:289) .....

The ClassCastException occurs here: https://github.com/rtfarte/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/SimpleBookmark.java#L289

ghost avatar Apr 05 '16 10:04 ghost