[
https://issues.apache.org/jira/browse/PDFBOX-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661963#comment-16661963
]
bal commented on PDFBOX-4312:
-----------------------------
public byte[] sign(InputStream @is)
{
InputStream ipstream = @is;
byte[] pdf = null;
pdf = docSigDict["doc"];
return pdf;
}
whats looks wrong in sign method i am just calculating signature bytes from
response and returning it from sign method. Is there any way to insert the
signature at proper byte range offset so that my signature gets valid. thanks.
> Signature is not getting inserted into 00000 area
> -------------------------------------------------
>
> Key: PDFBOX-4312
> URL: https://issues.apache.org/jira/browse/PDFBOX-4312
> Project: PDFBox
> Issue Type: Bug
> Components: .NET, PDModel, Signing
> Affects Versions: 1.8.9, 1.8.15
> Reporter: bal
> Priority: Major
> Fix For: 1.8.17
>
> Attachments:
> testingSignature-signed-SaveIncremental-1param-bad-cutoff.pdf,
> testingSignature-signed-SaveIncremental-2param-good.pdf
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]