Aspose::Pdf::Facades::PdfFileSignature::Certify method
Contents
[
Hide
]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)
| Parameter | Type | Description |
|---|---|---|
| sigName | const System::String& | The name of the signature field. |
| docMdpSignature | const 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
- Class String
- Typedef SharedPtr
- Class DocMDPSignature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| page | int32_t | The page on which signature is made. |
| SigReason | const System::String& | The reason of signature. |
| SigContact | const System::String& | The contact of signature. |
| SigLocation | const System::String& | The location of signature. |
| visible | bool | The visiblity of signature. |
| annotRect | System::Drawing::Rectangle | The rect of signature. |
| docMdpSignature | const System::SharedPtr<Forms::DocMDPSignature>& | The document MDP type of the signature. |
See Also
- Class String
- Class Rectangle
- Typedef SharedPtr
- Class DocMDPSignature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++