You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/04/20 23:08:02 UTC

[jira] [Created] (PDFBOX-2767) ClassCastException in PDDocument.addSignature

Tilman Hausherr created PDFBOX-2767:
---------------------------------------

             Summary: 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 indirect object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org