SignerContext Class
Wordize.DigitalSignatures.SignerContext class. Document signer context
SignerContext class
Document signer context
public class SignerContext : ProcessorContext
Constructors
Name | Description |
---|---|
SignerContext() | The default constructor. |
Properties
Name | Description |
---|---|
CertificateHolder { get; set; } | CertificateHolder object with certificate that used to sign file. |
FontSettings { get; set; } | Allows to specify document font settings. |
LayoutOptions { get; } | Document layout options used by the processor. |
SignOptions { get; set; } | SignOptions object with various signing options. |
WarningCallback { get; set; } | Warning callback used by the processor. |
Examples
Demonstrates how to sign document using Fluent API.
CertificateHolder certHolder = CertificateHolder.Create(MyDir + "morzal.pfx", "aw");
SignerContext context = new SignerContext();
context.CertificateHolder = certHolder;
context.SignOptions = new SignOptions() { XmlDsigLevel = XmlDsigLevel.XAdEsEpes };
Signer.Create(context)
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "Signed.docx")
.Execute();
See Also
- class ProcessorContext
- namespace Wordize.DigitalSignatures
- assembly Wordize