Table of Contents

Method RedactToBytesAsync

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

RedactToBytesAsync(string, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)

Asynchronously redacts the PDF at inputPath and returns the redacted bytes together with the report.

public static Task<PdfRedactionResult> RedactToBytesAsync(string inputPath, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)

Parameters

inputPath string
request PdfRedactionRequest
options PdfRedactionOptions
cancellationToken CancellationToken

Returns

Task<PdfRedactionResult>

RedactToBytesAsync(byte[], PdfRedactionRequest, PdfRedactionOptions, CancellationToken)

Asynchronously redacts in-memory PDF bytes and returns the redacted bytes together with the report.

public static Task<PdfRedactionResult> RedactToBytesAsync(byte[] pdfData, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)

Parameters

pdfData byte[]
request PdfRedactionRequest
options PdfRedactionOptions
cancellationToken CancellationToken

Returns

Task<PdfRedactionResult>

RedactToBytesAsync(Stream, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)

Asynchronously redacts the PDF read from inputStream and returns the redacted bytes together with the report.

public static Task<PdfRedactionResult> RedactToBytesAsync(Stream inputStream, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)

Parameters

inputStream Stream
request PdfRedactionRequest
options PdfRedactionOptions
cancellationToken CancellationToken

Returns

Task<PdfRedactionResult>

RedactToBytesAsync(Attachment, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)

Asynchronously redacts the PDF carried by attachment and returns the redacted bytes together with the report.

public static Task<PdfRedactionResult> RedactToBytesAsync(Attachment attachment, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)

Parameters

attachment Attachment
request PdfRedactionRequest
options PdfRedactionOptions
cancellationToken CancellationToken

Returns

Task<PdfRedactionResult>
Share