Table of Contents

Method GetFieldsAsync

Namespace
LMKit.Document.Pdf
Assembly
LM-Kit.NET.dll

GetFieldsAsync(string, CancellationToken)

Asynchronously reads the form fields of the PDF at inputPath.

public static Task<PdfFormSnapshot> GetFieldsAsync(string inputPath, CancellationToken cancellationToken = default)

Parameters

inputPath string
cancellationToken CancellationToken

Returns

Task<PdfFormSnapshot>

GetFieldsAsync(byte[], CancellationToken)

Asynchronously reads the form fields of in-memory PDF bytes.

public static Task<PdfFormSnapshot> GetFieldsAsync(byte[] pdfData, CancellationToken cancellationToken = default)

Parameters

pdfData byte[]
cancellationToken CancellationToken

Returns

Task<PdfFormSnapshot>

GetFieldsAsync(Attachment, CancellationToken)

Asynchronously reads the form fields of the PDF carried by attachment.

public static Task<PdfFormSnapshot> GetFieldsAsync(Attachment attachment, CancellationToken cancellationToken = default)

Parameters

attachment Attachment
cancellationToken CancellationToken

Returns

Task<PdfFormSnapshot>
Share