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

Tilman Hausherr commented on PDFBOX-4609:
-----------------------------------------

But the file you had attached did have a signature (although not on the correct 
input), I entered the hex into [https://lapo.it/asn1js/] and it was really a 
signature, so somehow you _did_ implement something.

The easiest is to follow the example, to make your main class "implements 
SignatureInterface". Then implement the sign() method like shown in the example.

However if you are trying to tell me that it isn't possible to "implement" a 
java interface from C#, then you've hit the final roadblock. I've always said 
that PDFBox is for java only. (But if so, how did you sign the file you had 
attached?)

You wrote:
{quote}signer class is not present in the pdfbox 1.8 version
{quote}
There is no "signer" class in any PDFBox version except the examples, which are 
not distributed as binary. These examples have an implementation of the 
SignatureInterface, but users are expected to use that as inspiration to 
implement their own.

> At least  one signature is invalid
> ----------------------------------
>
>                 Key: PDFBOX-4609
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4609
>             Project: PDFBox
>          Issue Type: Wish
>          Components: .NET
>    Affects Versions: 1.8.15
>            Reporter: bal
>            Priority: Major
>         Attachments: Debug.txt, keystore.p12
>
>
> I am getting signature is  invalid  error in the signature panel of pdf after 
> pkcs 7 signature insertion. I can see the name of the signer with the signed 
> by in signature panel. I am not able to find out disallowed changes pdfbox 
> does resulting into invalid pdf by acrobat reader.   Is it possible to 
> validate the pdf with pdfbox? Thanks in advance. 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to