[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592439#comment-15592439 ] Tilman Hausherr commented on PDFBOX-3535: - I won't reproduce the behavior of Adobe, as it has no advantage for TIKA. The destination is an internal destination, bot an URL, so TIKA users lose nothing. > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > Fix For: 2.0.4, 2.1.0 > > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592435#comment-15592435 ] Tilman Hausherr commented on PDFBOX-3535: - That's weird that it doesn't happen in the trunk, I fixed the same bug. > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > Fix For: 2.0.4, 2.1.0 > > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592424#comment-15592424 ] Tilman Hausherr commented on PDFBOX-3535: - Never mind, I found it: it is on page 5 (753). Instead of an action dictionary, it has the name of a destination. This is NOT in the specification, but Adobe Reader understands it. PDF.js doesn't. > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > Fix For: 2.0.4, 2.1.0 > > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592400#comment-15592400 ] Seva Alekseyev commented on PDFBOX-3535: It doesn't happen in the PDFBox trunk, I've checked. In 2.0.3 (which ships with Tika 1.13), however, the exception happens when the value of currentPage in pdftextStripper.processPages() is 4. > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > Fix For: 2.0.4, 2.1.0 > > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592353#comment-15592353 ] Tilman Hausherr commented on PDFBOX-3535: - [~sevaa] can you tell on what page it happened? The new code just ignores the wrong type. But I'd like to test what Adobe does. > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > Fix For: 2.0.4, 2.1.0 > > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592337#comment-15592337 ] ASF subversion and git services commented on PDFBOX-3535: - Commit 1765850 from [~tilman] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1765850 ] PDFBOX-3535: avoid ClassCastException, remove super(), set constant > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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
[jira] [Commented] (PDFBOX-3535) ClassCastException in PDAnnotationLink.getAction()
[ https://issues.apache.org/jira/browse/PDFBOX-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15592338#comment-15592338 ] ASF subversion and git services commented on PDFBOX-3535: - Commit 1765851 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1765851 ] PDFBOX-3535: avoid ClassCastException, remove super(), set constant > ClassCastException in PDAnnotationLink.getAction() > -- > > Key: PDFBOX-3535 > URL: https://issues.apache.org/jira/browse/PDFBOX-3535 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.3 >Reporter: Tim Allison >Priority: Trivial > > {noformat} > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString > cannot be cast to org.apache.pdfbox.cos.COSDictionary > at > org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:88) > {noformat} > [~sevaa] raised this issue on TIKA-2121. I confirmed that it happens with > PDFBox 2.0.3. I haven't confirmed trunk yet. -- 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