Table of Contents

Class SimpleSigner

Namespace
SimpleSign.PAdES
Assembly
SimpleSign.PAdES.dll

Main entry point for SimpleSign. Fluent API for PAdES signing of PDF documents.

public sealed class SimpleSigner
Inheritance
SimpleSigner
Inherited Members

Examples

await SimpleSigner
    .Document(pdfBytes)
    .WithCertificate(myCertificate)
    .WithTimestamp("http://carimbo.iti.br")
    .SignAsync(outputStream);

Methods

Document(byte[], ILogger?)

Starts the signing pipeline from a byte array.

public static SignerBuilder Document(byte[] pdfBytes, ILogger? logger = null)

Parameters

pdfBytes byte[]
logger ILogger

Returns

SignerBuilder

Document(Stream, ILogger?)

Starts the signing pipeline from a seekable stream.

public static SignerBuilder Document(Stream pdfStream, ILogger? logger = null)

Parameters

pdfStream Stream
logger ILogger

Returns

SignerBuilder

DocumentAsync(string, ILogger?, CancellationToken)

Starts the signing pipeline from a file path (async file I/O).

public static Task<SignerBuilder> DocumentAsync(string pdfPath, ILogger? logger = null, CancellationToken cancellationToken = default)

Parameters

pdfPath string
logger ILogger
cancellationToken CancellationToken

Returns

Task<SignerBuilder>