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

    Applies all redaction annotations 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 = null
    )

    Optional Parameters

    Name Type Default Description
    options PdfClearContentOptions null

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

    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];
    PdfClearContentOptions clearContentOptions = new PdfClearContentOptions()
    {
        ClearGraphics = false,
        ClearImages = false,
    };
    pageFacade.ApplyRedactAnnotations(clearContentOptions);
    pdfProcessor.SaveDocument("output.pdf");
    
    See Also