Method RedactToBytesAsync
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
inputPathstringrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
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
pdfDatabyte[]requestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
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
inputStreamStreamrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
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
attachmentAttachmentrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken