[]
Creates a signature packet for visible signature line.
void Sign(X509Certificate2 certificate, Stream signatureImage, SignatureDetails details)
Sub Sign(certificate As X509Certificate2, signatureImage As Stream, details As SignatureDetails)
Type | Name | Description |
---|---|---|
X509Certificate2 | certificate | The certificate that will be used to sign the workbook. |
Stream | signatureImage | The signature image of the signature line. |
SignatureDetails | details | The signature detail of the signature. |
Type | Condition |
---|---|
InvalidOperationException | Attempted to sign a non-visible signature line. |
Creates a signature packet for visible signature line.
void Sign(X509Certificate2 certificate, string signatureText, SignatureDetails details)
Sub Sign(certificate As X509Certificate2, signatureText As String, details As SignatureDetails)
Type | Name | Description |
---|---|---|
X509Certificate2 | certificate | The certificate that will be used to sign the workbook. |
string | signatureText | The signature text of the signature line. |
SignatureDetails | details | The signature detail of the signature. |
Type | Condition |
---|---|
InvalidOperationException | Attempted to sign a non-visible signature line. |
Creates a signature packet for non-visible signature line.
void Sign(X509Certificate2 certificate, SignatureDetails details)
Sub Sign(certificate As X509Certificate2, details As SignatureDetails)
Type | Name | Description |
---|---|---|
X509Certificate2 | certificate | The certificate that will be used to sign the workbook. |
SignatureDetails | details | The signature detail of the signature. |
Type | Condition |
---|---|
InvalidOperationException | Attempted to sign a visible signature line. |