Class SignOptions

Info

Represents Sign Options for Documentize.PdfSecurity component.

public sealed class SignOptions : OptionsWithInputAndOutput, IHaveInput

Inheritance

objectOptionsWithInputOptionsWithInputAndOutputSignOptions

Implements

Inherited Members

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

  • pfx Stream: The stream with the pfx file.
  • password string: The password to the pfx file.

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

  • pfx string: The path to the pfx file.
  • password string: The password to the pfx file.

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

  • inputData IData: The input data.
  • outputData IData: The output data.
  • pfxData IData: The data to the pfx.
  • password string: 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

  • inputFile string: The input file path.
  • outputFile string: The output file path.
  • pfxFile string: The path to the pfx file.
  • pfxPassword string: 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

  • inputStream Stream: The input file stream.
  • outputStream Stream: The output file stream.
  • pfxStream Stream: The path to the pfx stream.
  • pfxPassword string: 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

  • timestampOptions TimestampOptions: 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

string

Input

Gets or sets Input Data.

public override IData Input { get; set; }

Property Value

IData

Location

The location of signature.

public string Location { get; set; }

Property Value

string

Name

The name of existing signature field. Null to create a new field.

public string Name { get; set; }

Property Value

string

Output

Gets or sets Output Data.

public override IData Output { get; set; }

Property Value

IData

PageNumber

The page number on which signature is made.

public int PageNumber { get; set; }

Property Value

int

Pfx

The Stream with PFX data.

public Stream Pfx { get; set; }

Property Value

Stream

PfxPassword

The password for the Documentize.SignOptions.Pfx

public string PfxPassword { get; set; }

Property Value

string

Reason

The reason of signature.

public string Reason { get; set; }

Property Value

string

Rectangle

The rect of signature.

public Rectangle Rectangle { get; set; }

Property Value

Rectangle

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

TimestampOptions

Visible

The visiblity of signature.

public bool Visible { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

 English