[
https://issues.apache.org/jira/browse/PDFBOX-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053351#comment-17053351
]
Tilman Hausherr commented on PDFBOX-4780:
-----------------------------------------
No because
0) in the example, it was {{getAnnotations()}} itself that failed
1) the annotations is just one of the many things that can go wrong
2) you shouldn't remove that element, it is needed for accessibility
There is nothing you can do. Even if you'd try text extraction and rendering,
there might still be some other surprising problem in the many structures, so
the easiest would be to go ahead with the merge and to tell when it didn't
work. Also communicate to your clients that only correct files are processed,
and "But it displays with Adobe!!1!" doesn't prove a file is correct.
> Possible issue on
> org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation
> -------------------------------------------------------------------------------
>
> Key: PDFBOX-4780
> URL: https://issues.apache.org/jira/browse/PDFBOX-4780
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.18
> Reporter: Jorge Spinsanti
> Priority: Major
>
> When we try to merge several PDFs files, we got the next stacktrace:
> {code:java}
> Caused by: java.io.IOException: Error: Unknown annotation type
> COSName{ICCBased}
> at
> org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.createAnnotation(PDAnnotation.java:172)
> at org.apache.pdfbox.pdmodel.PDPage.getAnnotations(PDPage.java:696)
> at org.apache.pdfbox.pdmodel.PDPage.getAnnotations(PDPage.java:663)
> at
> org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:801)
> at
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:459)
> at
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346)
> {code}
> We cannot details about each PDF involved in merge. Perhaps it is an issue
> but I'm not sure
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]