Skip to content

PdfSignatureOptions class

View as Markdown

Namespace: PdfNetStack.Signing
Assembly: PdfNetStack.dll
Package: PdfNetStack

How to sign.

public sealed record PdfSignatureOptions : IEquatable<PdfSignatureOptions>

Inheritance

object ← PdfSignatureOptions

Implements

IEquatable<PdfSignatureOptions>

A visible signature, or null for an invisible one.

public PdfSignatureAppearance? Appearance { get; init; }

PdfSignatureAppearance?

Intermediate certificates to embed, so validators can build the chain to a trusted root.

public IReadOnlyList<X509Certificate2> Chain { get; init; }

IReadOnlyList<X509Certificate2>

How to reach the signer.

public string? ContactInfo { get; init; }

string?

The hash. Default SHA-256.

public PdfDigestAlgorithm Digest { get; init; }

PdfDigestAlgorithm

The signature field’s name; null picks Signature1, Signature2 and so on.

public string? FieldName { get; init; }

string?

Where it is signed.

public string? Location { get; init; }

string?

Why the document is signed.

public string? Reason { get; init; }

string?

The signing time recorded in the signature dictionary; null for now.

public DateTimeOffset? SigningTime { get; init; }

DateTimeOffset?

A time stamp authority to timestamp the signature value (PAdES B-T); null for none (B-B). The token goes in the CMS signature as an unsigned attribute.

public PdfTimestampClient? Timestamp { get; init; }

PdfTimestampClient?