Class SignOptions
Represents Sign Options for Documentize.PdfSecurity component.
public sealed class SignOptions : OptionsWithInputAndOutput, IHaveInputInheritance
object ← OptionsWithInput ← OptionsWithInputAndOutput ← SignOptions
Implements
Inherited Members
- OptionsWithInputAndOutput.Output,
- OptionsWithInput.Input,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
SignOptions(Stream, string)
Initializes a new instance of the Documentize.SignOptions object with setting pfx stream and password.
public SignOptions(Stream pfx, string password)Parameters
SignOptions(string, string)
Initializes a new instance of the Documentize.SignOptions object with setting pfx file and password.
public SignOptions(string pfx, string password)Parameters
SignOptions(IData, IData, IData, string)
Initializes a new instance of the Documentize.SignOptions object with setting input, output, pfx data and password.
public SignOptions(IData inputData, IData outputData, IData pfxData, string password)Parameters
inputDataIData: The input data.outputDataIData: The output data.pfxDataIData: The data to the pfx.passwordstring: The password to the pfx.
SignOptions(string, string, string, string)
Initializes a new instance of the Documentize.SignOptions object with setting input, output, pfx files and password.
public SignOptions(string inputFile, string outputFile, string pfxFile, string pfxPassword)Parameters
inputFilestring: The input file path.outputFilestring: The output file path.pfxFilestring: The path to the pfx file.pfxPasswordstring: The password to the pfx.
SignOptions(Stream, Stream, Stream, string)
Initializes a new instance of the Documentize.SignOptions object with setting input, output, pfx streams and password.
public SignOptions(Stream inputStream, Stream outputStream, Stream pfxStream, string pfxPassword)Parameters
inputStreamStream: The input file stream.outputStreamStream: The output file stream.pfxStreamStream: The path to the pfx stream.pfxPasswordstring: The password to the pfx.
SignOptions(TimestampOptions)
Initializes a new instance of the Documentize.SignOptions object with setting Timestamp. You can set the timestamp for a document as a separate signature.
public SignOptions(TimestampOptions timestampOptions)Parameters
timestampOptionsTimestampOptions: The timestamp are used to create the timestamp signature without the need to provide a certificate.
Properties
Contact
The contact of signature.
public string Contact { get; set; }Property Value
Input
Gets or sets Input Data.
public override IData Input { get; set; }Property Value
Location
The location of signature.
public string Location { get; set; }Property Value
Name
The name of existing signature field. Null to create a new field.
public string Name { get; set; }Property Value
Output
Gets or sets Output Data.
public override IData Output { get; set; }Property Value
PageNumber
The page number on which signature is made.
public int PageNumber { get; set; }Property Value
Pfx
The Stream with PFX data.
public Stream Pfx { get; set; }Property Value
PfxPassword
The password for the Documentize.SignOptions.Pfx
public string PfxPassword { get; set; }Property Value
Reason
The reason of signature.
public string Reason { get; set; }Property Value
Rectangle
The rect of signature.
public Rectangle Rectangle { get; set; }Property Value
TimestampOptions
Timestamp Options. The timestamp are used to create the timestamp signature without the need to provide a certificate. If the property is set and a certificate is provided to the constructor of the Documentize.SignOptions class, the digital signature will be timestamped with an embedded timestamp. If the property is set but no certificate is provided to the constructor of the Documentize.SignOptions class, the timestamp will be added as a separate signature.
public TimestampOptions TimestampOptions { get; set; }Property Value
Visible
The visiblity of signature.
public bool Visible { get; set; }Property Value
Namespace: Documentize Assembly: Documentize.dll