Skip to main content
A newer version of this page is available. .
All docs
V21.1
.NET Framework 4.5.2+

PdfAnnotationFacade Class

Exposes a set of methods used to organize annotations without access to its inner structure.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

Declaration

public class PdfAnnotationFacade

Remarks

Use the PdfPageFacade.Annotations property to retrieve a list of annotation facade objects. Utilize the PdfAnnotationFacade.Flatten() method to flatten a specific annotation.

The code sample below flattens the first annotation on the page:

using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
{
  // Load a document:
  processor.LoadDocument("..\\..\\Document.pdf");

  // Flatten the first annotation:
  var annotations = processor.DocumentFacade.Pages[0].Annotations;
  annotations[0].Flatten();

  // Save the result:
  processor.SaveDocument("..\\..\\Result.pdf");
}

Inheritance

Object
PdfAnnotationFacade
See Also