Table of Contents

Method VerifyAsync

Namespace
PdfSharp.Pdf.Signatures
Assembly
PdfSharp.dll

VerifyAsync(Stream, PdfSignatureVerificationOptions?, CancellationToken)

Checks every signature and document time-stamp of the file, in the order their fields are found. A file that cannot be opened throws; a signature that cannot be checked is reported as Indeterminate.

public static Task<IReadOnlyList<PdfSignatureVerification>> VerifyAsync(Stream file, PdfSignatureVerificationOptions? options = null, CancellationToken cancellationToken = default)

Parameters

file Stream
options PdfSignatureVerificationOptions
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<PdfSignatureVerification>>

VerifyAsync(byte[], PdfSignatureVerificationOptions?, CancellationToken)

Checks every signature and document time-stamp of the file, in the order their fields are found. A file that cannot be opened throws; a signature that cannot be checked is reported as Indeterminate.

public static Task<IReadOnlyList<PdfSignatureVerification>> VerifyAsync(byte[] file, PdfSignatureVerificationOptions? options = null, CancellationToken cancellationToken = default)

Parameters

file byte[]
options PdfSignatureVerificationOptions
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<PdfSignatureVerification>>