[ https://issues.apache.org/jira/browse/PDFBOX-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16615100#comment-16615100 ]
Tilman Hausherr commented on PDFBOX-4312: ----------------------------------------- Your sign() method looks suspicious. The input of this is the data to be signed. This is NOT identical to the PDF, it is "everything except the signature area". This data doesn't exist before calling {{saveIncremental}}. Yet you are passing {{docSigDict["doc"]}} from earlier. Please try to follow the signature example (see 1.8 source code download) as much as possible. > byte array format to pass to sign method > ---------------------------------------- > > Key: PDFBOX-4312 > URL: https://issues.apache.org/jira/browse/PDFBOX-4312 > Project: PDFBox > Issue Type: Wish > Components: .NET, PDModel, Signing > Affects Versions: 1.8.9 > Reporter: bal > Priority: Major > > Hi , > I want to sign pdf using signature in pkcs 7 format . I am converting pkcs 7 > signature to byte array using Convert.FromBase64String method in .net . I am > passing this byte array to sign method in signature interface which gets > called after calling saveincremental. My byte array is inserting proper but > the name of which signature is not shown when i open pdf. May be my byte > conversion may not proper or something else i am doing wrong. please let me > know. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org