Aspose::Pdf::Facades::PdfFileSignature::Sign method
PdfFileSignature::Sign(const System::String&, const System::SharedPtr<Forms::Signature>&) method
Sign the document with the given type 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). Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig.
void Aspose::Pdf::Facades::PdfFileSignature::Sign(const System::String &SigName, const System::SharedPtr<Forms::Signature> &sig)
| Parameter | Type | Description |
|---|---|---|
| SigName | const System::String& | The name of the signature field. |
| sig | const System::SharedPtr<Forms::Signature>& | The type of the signature, could be PKCS1 (Pkcs1Signature object), PKCS7 and PKCS7 detached (Pkcs7Signature object) |
See Also
- Class String
- Typedef SharedPtr
- Class Signature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::Sign(const System::String&, const System::String&, const System::String&, const System::String&, const System::SharedPtr<Forms::Signature>&) method
Sign the document with the given type 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::Sign(const System::String &SigName, const System::String &SigReason, const System::String &SigContact, const System::String &SigLocation, const System::SharedPtr<Forms::Signature> &sig)
| Parameter | Type | Description |
|---|---|---|
| SigName | const System::String& | The name of the signature field. |
| SigReason | const System::String& | The reason of signature. |
| SigContact | const System::String& | The contact of signature. |
| SigLocation | const System::String& | The location of signature. |
| sig | const System::SharedPtr<Forms::Signature>& | The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached. |
See Also
- Class String
- Typedef SharedPtr
- Class Signature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::Sign(int32_t, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) method
Sign the document with the given type signature.
void Aspose::Pdf::Facades::PdfFileSignature::Sign(int32_t page, bool visible, System::Drawing::Rectangle annotRect, const System::SharedPtr<Forms::Signature> &sig)
| Parameter | Type | Description |
|---|---|---|
| page | int32_t | The page number on which signature is made. |
| visible | bool | The visiblity of signature. |
| annotRect | System::Drawing::Rectangle | The rect of signature. |
| sig | const System::SharedPtr<Forms::Signature>& | The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached. Such data as signature reason, contact and location must be already present in this object (see corresponding properties). |
See Also
- Class Rectangle
- Typedef SharedPtr
- Class Signature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::Sign(int32_t, const System::String&, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) method
Sign the document with the given type signature which is placed in already presented signature field. Before signing pdf document should already has signature field, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter).
void Aspose::Pdf::Facades::PdfFileSignature::Sign(int32_t page, const System::String &SigName, const System::String &SigReason, const System::String &SigContact, const System::String &SigLocation, bool visible, System::Drawing::Rectangle annotRect, const System::SharedPtr<Forms::Signature> &sig)
| Parameter | Type | Description |
|---|---|---|
| page | int32_t | The page number on which signature is made. |
| SigName | const System::String& | The name of the signature field. |
| 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. |
| sig | const System::SharedPtr<Forms::Signature>& | The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached. |
See Also
- Class String
- Class Rectangle
- Typedef SharedPtr
- Class Signature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::Sign(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle) method
Make a signature on the pdf document.
void Aspose::Pdf::Facades::PdfFileSignature::Sign(int32_t page, const System::String &SigReason, const System::String &SigContact, const System::String &SigLocation, bool visible, System::Drawing::Rectangle annotRect)
| Parameter | Type | Description |
|---|---|---|
| page | int32_t | The page number 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. |
See Also
- Class String
- Class Rectangle
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::Sign(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) method
Sign the document with the given type signature.
void Aspose::Pdf::Facades::PdfFileSignature::Sign(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::Signature> &sig)
| Parameter | Type | Description |
|---|---|---|
| page | int32_t | The page number 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. |
| sig | const System::SharedPtr<Forms::Signature>& | The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached. |
See Also
- Class String
- Class Rectangle
- Typedef SharedPtr
- Class Signature
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++