[ https://issues.apache.org/jira/browse/PDFBOX-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542838#comment-14542838 ]
Tilman Hausherr commented on PDFBOX-2797: ----------------------------------------- Please try this in PDJavascriptNameTreeNode: {code} protected COSObjectable convertCOSToPD( COSBase base ) throws IOException { if (!(base instanceof COSDictionary)) { throw new IOException( "Error creating Javascript object, expected a COSDictionary and not " + base); } return PDActionFactory.createAction((COSDictionary) base); } {code} This doesn't crash anymore. Can whatever you're doing work with this? > PDJavascriptNameTreeNode does not support dictionaries > ------------------------------------------------------ > > Key: PDFBOX-2797 > URL: https://issues.apache.org/jira/browse/PDFBOX-2797 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.0 > Reporter: Michele Balistreri > Attachments: 006654.pdf, 2015-05-13 22-24-09 PDFBox.png, > TestJavascript.java, javascript-reading.diff > > > PDJavascriptNameTreeNode does not support JavaScript contained in > dictionaries with a JS entry. The attached patch adds support for this. Sorry > but I cannot provide example PDF for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org