Table of Contents

Method FillAsync

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

FillAsync(string, PdfFormFillRequest, CancellationToken)

Asynchronously fills the form of the PDF at inputPath and returns the filled bytes together with the report.

public static Task<PdfFormFillResult> FillAsync(string inputPath, PdfFormFillRequest request, CancellationToken cancellationToken = default)

Parameters

inputPath string
request PdfFormFillRequest
cancellationToken CancellationToken

Returns

Task<PdfFormFillResult>

FillAsync(byte[], PdfFormFillRequest, CancellationToken)

Asynchronously fills the form of in-memory PDF bytes and returns the filled bytes together with the report.

public static Task<PdfFormFillResult> FillAsync(byte[] pdfData, PdfFormFillRequest request, CancellationToken cancellationToken = default)

Parameters

pdfData byte[]
request PdfFormFillRequest
cancellationToken CancellationToken

Returns

Task<PdfFormFillResult>

FillAsync(Attachment, PdfFormFillRequest, CancellationToken)

Asynchronously fills the form of the PDF carried by attachment and returns the filled bytes together with the report.

public static Task<PdfFormFillResult> FillAsync(Attachment attachment, PdfFormFillRequest request, CancellationToken cancellationToken = default)

Parameters

attachment Attachment
request PdfFormFillRequest
cancellationToken CancellationToken

Returns

Task<PdfFormFillResult>
Share