pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4312) Signature is not getting inserted into 00000 area
Date Thu, 01 Nov 2018 08:03:02 GMT

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

bal commented on PDFBOX-4312:
-----------------------------

signing will only work if you calculate the signature from the input stream at the time sign()
is called. can u please explain i am not getting it .???

actually when i used the pdsignature.setcontents(signaturebytes)  it is inserting the signature
at proper byte range i.e within the contents in hex form without trailing 0's but when used
addsignature method it only add trailing 0's and signature is getting inserted at end of the
pdf. 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
>
>
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message