[Podofo-users] Digital signature of PDF
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Victor W. <wie...@pd...> - 2016-02-05 19:06:16
|
Hello,
As my subject says, I want to create a digital signature in my pdf for
verification of data. The documentation is vauge with what file type is
needed as a private key. I have seen x.509, pem, pfx, PKCS #8, etc. So my
code so far is:
PdfSignatureField signField( pPage, PdfRect( 0, 0, 0, 0 ), document );
signField.SetFieldName("SignatureFieldName");
signField.SetSignature(I-AM-MISSING-THIS);
signField.SetSignatureReason("Document verification");
//Set time of signing
signField.SetSignatureDate( PoDoFo::PdfDate() );
What I am missing is the setSignature (I think). Can you tell me what
filetype is needed private key and public key verification of PDF for
PoDoFo? Code examples on brining it in would be handy too.
Thank you
Victor
|