[
https://issues.apache.org/jira/browse/PDFBOX-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503640#comment-14503640
]
ASF subversion and git services commented on PDFBOX-2767:
---------------------------------------------------------
Commit 1674985 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1674985 ]
PDFBOX-2767: allow object reference for /AP and /DR
> ClassCastException in PDDocument.addSignature
> ---------------------------------------------
>
> Key: PDFBOX-2767
> URL: https://issues.apache.org/jira/browse/PDFBOX-2767
> Project: PDFBox
> Issue Type: Bug
> Components: Signing
> Affects Versions: 1.8.9, 1.8.10, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.10, 2.0.0
>
>
> As reported here in 2013:
> http://stackoverflow.com/questions/17452869/pdfbox-add-visual-signature-cosobject-cast-error
> {code}
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.pdfbox.cos.COSObject cannot be cast to
> org.apache.pdfbox.cos.COSDictionary at
> org.apache.pdfbox.pdmodel.PDDocument.addSignature(PDDocument.java:474)
> {code}
> The cause is explained in the answer by [~mkl], our code fails with an object
> reference.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]