Skip to content
Browse files

Merge pull request #3 from philippecade/patch-1

Skip actions that cannot be parsed when reading outline
  • Loading branch information...
2 parents 631c0e2 + 60842f7 commit 90c106c6aced017d90a55e8438ec2e2c92a22f95 @katjas committed Feb 8, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/com/sun/pdfview/PDFFile.java
View
7 src/com/sun/pdfview/PDFFile.java
@@ -1422,7 +1422,12 @@ public OutlineNode getOutline() throws IOException {
PDFObject actionObj = scan.getDictRef("A");
if (actionObj != null) {
- action = PDFAction.getAction(actionObj, getRoot());
+ try {
+ action = PDFAction.getAction(actionObj, getRoot());
+ }
+ catch (PDFParseException e) {
+ // oh well
+ }
} else {
// try to create an action from a destination
PDFObject destObj = scan.getDictRef("Dest");

0 comments on commit 90c106c

Please sign in to comment.
Something went wrong with that request. Please try again.