Table of Contents

Class PreparedSignature

Namespace
MiPdf.Signatures
Assembly
MiPdf.dll

A document prepared for an external signature: the signature dictionary is in place, the byte range is fixed and only the signature container (/Contents) is missing.

public sealed class PreparedSignature
Inheritance
PreparedSignature
Inherited Members

Properties

ByteRange

The /ByteRange [offset1 length1 offset2 length2].

public IReadOnlyList<long> ByteRange { get; }

Property Value

IReadOnlyList<long>

ContainerSize

Space available for the DER-encoded signature container in bytes.

public int ContainerSize { get; }

Property Value

int

DigestAlgorithm

The hash algorithm used by GetDocumentDigest() (from DigestAlgorithm).

public HashAlgorithmName DigestAlgorithm { get; }

Property Value

HashAlgorithmName

FieldName

Name of the signature field (FieldName or a generated name such as "Signature1").

public string FieldName { get; }

Property Value

string

PreparedPdf

The prepared PDF (store it if the signature is completed in another process).

public byte[] PreparedPdf { get; }

Property Value

byte[]

Methods

GetDocumentDigest()

The digest of the signed bytes (to be signed by an external CMS service).

public byte[] GetDocumentDigest()

Returns

byte[]

GetSignedData()

The signed bytes (both byte ranges concatenated).

public byte[] GetSignedData()

Returns

byte[]