Method RedactToBytes
RedactToBytes(string, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)
Redacts the PDF at inputPath and returns the
redacted bytes together with the report.
public static PdfRedactionResult RedactToBytes(string inputPath, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputPathstringrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytes(byte[], PdfRedactionRequest, PdfRedactionOptions, CancellationToken)
Redacts in-memory PDF bytes and returns the redacted bytes together with the report.
public static PdfRedactionResult RedactToBytes(byte[] pdfData, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
pdfDatabyte[]requestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytes(Stream, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)
Redacts the PDF read from inputStream and
returns the redacted bytes together with the report.
public static PdfRedactionResult RedactToBytes(Stream inputStream, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputStreamStreamrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytes(Attachment, PdfRedactionRequest, PdfRedactionOptions, CancellationToken)
Redacts the PDF carried by attachment and
returns the redacted bytes together with the report.
public static PdfRedactionResult RedactToBytes(Attachment attachment, PdfRedactionRequest request, PdfRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
attachmentAttachmentrequestPdfRedactionRequestoptionsPdfRedactionOptionscancellationTokenCancellationToken