Skip to main content
All docs
V25.1
  • PdfPageFacade.ApplyRedactAnnotations(PdfClearContentOptions, String[]) Method

    Applies redaction annotations with specified names on the page. 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,
        params string[] names
    )

    Parameters

    Name Type Description
    options PdfClearContentOptions

    Options that specify what content type to keep visible in the redaction area.

    names String[]

    An array of annotation names.

    Remarks

    Example: Apply Redaction Annotations on the First Page

    using DevExpress.Pdf;
    
    PdfDocumentProcessor pdfProcessor = new PdfDocumentProcessor();
    pdfProcessor.LoadDocument("Invoice.pdf");
    
    PdfDocumentFacade documentFacade = pdfProcessor.DocumentFacade;
    var pageFacade = documentFacade.Pages[0];
    pageFacade.ApplyRedactAnnotations(null, new string[] {"redact1, redact2"});
    
    pdfProcessor.SaveDocument("output.pdf");
    
    See Also