Skip to main content
All docs
V25.1
  • PdfDocumentFacade.ApplyRedactAnnotations(PdfClearContentOptions) Method

    Applies all redact annotations. Allows you to specify what content type to keep visible in the redaction area.

    Namespace: DevExpress.Pdf

    Assembly: DevExpress.Pdf.v25.1.Core.dll

    NuGet Package: DevExpress.Pdf.Core

    Declaration

    public void ApplyRedactAnnotations(
        PdfClearContentOptions options = null
    )

    Optional Parameters

    Name Type Default Description
    options PdfClearContentOptions null

    Options that specify what content type to keep in target regions.

    Remarks

    Example: Apply Redact Annotations

    using DevExpress.Pdf;
    
    PdfDocumentProcessor pdfProcessor = new PdfDocumentProcessor();
    pdfProcessor.LoadDocument("Invoice.pdf");
    
    PdfDocumentFacade documentFacade = pdfProcessor.DocumentFacade;
    PdfClearContentOptions clearContentOptions = new PdfClearContentOptions()
    {
        ClearGraphics = false,
        ClearImages = false,
    };
    documentFacade.ApplyRedactAnnotations(clearContentOptions);
    // Save the document with the redaction annotation and send it for review
    pdfProcessor.SaveDocument("output.pdf");
    
    See Also