Skip to content

Commit

Permalink
Merge pull request #3 from philippecade/patch-1
Browse files Browse the repository at this point in the history
Skip actions that cannot be parsed when reading outline
  • Loading branch information
katjas committed Feb 8, 2012
2 parents 631c0e2 + 60842f7 commit 90c106c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/com/sun/pdfview/PDFFile.java
Expand Up @@ -1422,7 +1422,12 @@ public OutlineNode getOutline() throws IOException {


PDFObject actionObj = scan.getDictRef("A"); PDFObject actionObj = scan.getDictRef("A");
if (actionObj != null) { if (actionObj != null) {
action = PDFAction.getAction(actionObj, getRoot()); try {
action = PDFAction.getAction(actionObj, getRoot());
}
catch (PDFParseException e) {
// oh well
}
} else { } else {
// try to create an action from a destination // try to create an action from a destination
PDFObject destObj = scan.getDictRef("Dest"); PDFObject destObj = scan.getDictRef("Dest");
Expand Down

0 comments on commit 90c106c

Please sign in to comment.