Skip to main content
All docs
V22.2
.NET Framework 4.5.2+

PdfAnnotationFacade.Flatten() Method

Flattens the annotation.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v22.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

Declaration

public void Flatten()

Remarks

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");
}
See Also