[ https://issues.apache.org/jira/browse/PDFBOX-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542628#comment-14542628 ]
Michele Balistreri commented on PDFBOX-2797: -------------------------------------------- I made a test, but it does not fail with the file you sent me. It fails with my file however with the following message ava.io.IOException: Error creating Javascript object, expected either COSString or COSStream and not COSDictionary{(COSName{JS}:COSDictionary{(COSName{Filter}:COSName{FlateDecode}) (COSName{Length}:COSInt{10429}) }) (COSName{S}:COSName{JavaScript}) } at org.apache.pdfbox.pdmodel.PDJavascriptNameTreeNode.convertCOSToPD(PDJavascriptNameTreeNode.java:70) at org.apache.pdfbox.pdmodel.common.PDNameTreeNode.getNames(PDNameTreeNode.java:267) at org.apache.pdfbox.pdmodel.common.TestJavascript.testGetNames(TestJavascript.java:45) I can attach a screenshot of the relevant section in PDFDebugger of my file. > 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: 004674.pdf, 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