Table of Contents

Method Sign

Namespace
DocWright.Signatures
Assembly
DocWright.Signatures.dll

Sign(byte[], Stream, IPdfSignatureProvider, PdfSigningOptions?)

Writes a signed copy of pdf to destination.

public static void Sign(byte[] pdf, Stream destination, IPdfSignatureProvider provider, PdfSigningOptions? options = null)

Parameters

pdf byte[]

The PDF to sign, as bytes. Not modified.

destination Stream

Receives the original bytes plus the signature update.

provider IPdfSignatureProvider

The host's CMS provider. DocWright never holds the key.

options PdfSigningOptions

Signing options, or null for the defaults.

Exceptions

ArgumentNullException

A required argument is null.

InvalidDocumentException

pdf is not a PDF this package can append to, or the produced signature does not fit the reserved space.