[
https://issues.apache.org/jira/browse/PDFBOX-3773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15991151#comment-15991151
]
Tim Allison commented on PDFBOX-3773:
-------------------------------------
Looks like there isn't an actual destination in the file. Perhaps, this is the
correct behavior, and users should do a try/catch to parse the rest of the
document?
> PDAction on document open: can't convert to Destination
> COSArray{[COSObject{12, 0}]}
> ------------------------------------------------------------------------------------
>
> Key: PDFBOX-3773
> URL: https://issues.apache.org/jira/browse/PDFBOX-3773
> Project: PDFBox
> Issue Type: Improvement
> Reporter: Tim Allison
> Priority: Trivial
> Attachments: 745405.pdf
>
>
> On a handful of docs in our regression corpus, over on Tika, we're now
> getting an exception trying to extract the open Action on PDDocumentCatalog.
> This is a new exception (for us) because we weren't extracting these before.
> {noformat}
> java.io.IOException: Error: can't convert to Destination
> COSArray{[COSObject{12, 0}]}
> at
> org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination.create(PDDestination.java:98)
> at org.apache.pdfbox.pdmodel.PDDocumentCatalog.getOpenAction
> (PDDocumentCatalog.java:257)
> at
> org.apache.tika.parser.pdf.AbstractPDF2XHTML.startDocument(AbstractPDF2XHTML.java:460)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]