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

PdfFileSignature::Certify(int32_t, System::String, System::String, System::String, bool, System::Drawing::Rectangle, System::SharedPtr<Aspose::Pdf::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, System::String SigReason, System::String SigContact, System::String SigLocation, bool visible, System::Drawing::Rectangle annotRect, System::SharedPtr<Aspose::Pdf::Forms::DocMDPSignature> docMdpSignature)
ParameterTypeDescription
pageint32_tThe page on which signature is made.
SigReasonSystem::StringThe reason of signature.
SigContactSystem::StringThe contact of signature.
SigLocationSystem::StringThe location of signature.
visibleboolThe visiblity of signature.
annotRectSystem::Drawing::RectangleThe rect of signature.
docMdpSignatureSystem::SharedPtr<Aspose::Pdf::Forms::DocMDPSignature>The document MDP type of the signature.

See Also

PdfFileSignature::Certify(System::String, System::SharedPtr<Aspose::Pdf::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(System::String sigName, System::SharedPtr<Aspose::Pdf::Forms::DocMDPSignature> docMdpSignature)
ParameterTypeDescription
sigNameSystem::StringThe name of the signature field.
docMdpSignatureSystem::SharedPtr<Aspose::Pdf::Forms::DocMDPSignature>The type of the signature, could be Aspose::Pdf::Forms::PKCS1, Aspose::Pdf::Forms::PKCS7 and Aspose::Pdf::Forms::PKCS7Detached

See Also