[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.ISignatureBuilder

Interface ISignatureBuilder

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Defines methods used to build the signature PDF dictionary and the binary signature container that is stored as Contents entry in the signature PDF dictionary.

public interface ISignatureBuilder

Methods

Build(GcPdfDocument, Stream, object)

Builds the binary signature for a specified content.

byte[] Build(GcPdfDocument doc, Stream content, object customData)

Parameters

doc GcPdfDocument

The GcPdfDocument object to sign.

content System.IO.Stream

The stream representing the signed content.

customData object

The custom data returned by the Prepare(GcPdfDocument, out string, out string, out int, out object) method.

Returns

byte[]

The binary signature container.

Prepare(GcPdfDocument, out string, out string, out int, out object)

Prepares the signature builder.

void Prepare(GcPdfDocument doc, out string filter, out string subFilter, out int approximateSize, out object customData)

Parameters

doc GcPdfDocument

The GcPdfDocument object to sign.

filter string

OUT: The name of the preferred signature handler to use when validating this signature.

subFilter string

OUT: The name that describes the encoding of the signature value and key information in the signature dictionary.

approximateSize int

OUT: The approximate size of the signature.

customData object

OUT: The custom data that is passed to the Build(GcPdfDocument, Stream, object) method.