Aspose::Pdf::Facades::PdfFileSignature::Certify method

PdfFileSignature::Certify(const System::String&, const System::SharedPtr<Forms::DocMDPSignature>&) method

Certify the document with the MDP signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see sigName parameter).

void Aspose::Pdf::Facades::PdfFileSignature::Certify(const System::String &sigName, const System::SharedPtr<Forms::DocMDPSignature> &docMdpSignature)
ParameterTypeDescription
sigNameconst System::String&The name of the signature field.
docMdpSignatureconst System::SharedPtr<Forms::DocMDPSignature>&The type of the signature, could be Aspose::Pdf::Forms::PKCS1, Aspose::Pdf::Forms::PKCS7 and Aspose::Pdf::Forms::PKCS7Detached

See Also

PdfFileSignature::Certify(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::DocMDPSignature>&) method

Certify the document with the MDP signature. Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig.

void Aspose::Pdf::Facades::PdfFileSignature::Certify(int32_t page, const System::String &SigReason, const System::String &SigContact, const System::String &SigLocation, bool visible, System::Drawing::Rectangle annotRect, const System::SharedPtr<Forms::DocMDPSignature> &docMdpSignature)
ParameterTypeDescription
pageint32_tThe page on which signature is made.
SigReasonconst System::String&The reason of signature.
SigContactconst System::String&The contact of signature.
SigLocationconst System::String&The location of signature.
visibleboolThe visiblity of signature.
annotRectSystem::Drawing::RectangleThe rect of signature.
docMdpSignatureconst System::SharedPtr<Forms::DocMDPSignature>&The document MDP type of the signature.

See Also