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)
ParameterTypeDescription
SigNameconst System::String&The name of the signature field.
sigconst System::SharedPtr<Forms::Signature>&The type of the signature, could be PKCS1 (Pkcs1Signature object), PKCS7 and PKCS7 detached (Pkcs7Signature object)

See Also

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)
ParameterTypeDescription
SigNameconst System::String&The name of the signature field.
SigReasonconst System::String&The reason of signature.
SigContactconst System::String&The contact of signature.
SigLocationconst System::String&The location of signature.
sigconst System::SharedPtr<Forms::Signature>&The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached.

See Also

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)
ParameterTypeDescription
pageint32_tThe page number on which signature is made.
visibleboolThe visiblity of signature.
annotRectSystem::Drawing::RectangleThe rect of signature.
sigconst 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

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)
ParameterTypeDescription
pageint32_tThe page number on which signature is made.
SigNameconst System::String&The name of the signature field.
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.
sigconst System::SharedPtr<Forms::Signature>&The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached.

See Also

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)
ParameterTypeDescription
pageint32_tThe page number 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.

See Also

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)
ParameterTypeDescription
pageint32_tThe page number 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.
sigconst System::SharedPtr<Forms::Signature>&The type of the signature, could be PKCS1, PKCS7 and PKCS7Detached.

See Also