[ 
https://issues.apache.org/jira/browse/PDFBOX-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039960#comment-17039960
 ] 

Maruan Sahyoun commented on PDFBOX-4780:
----------------------------------------

So from looking at the stacktrace there is a wrong entry in the pages 
annotations - I'd need the PDF to be sure and check if there is an issue in our 
code. But the check is very straight forward - it checks if the value passed to 
the methos is a {{COSDictionary}} and otherwise throws the exception printing 
the passed value.

>From that it looks like there is a malformed PDF.

> 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]

Reply via email to