All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfPageFacade.FlattenAnnotations(String[]) Method

Flattens annotations with specified names.

Namespace: DevExpress.Pdf

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

Declaration

public void FlattenAnnotations(
    params string[] names
)

Parameters

Name Type Description
names String[]

An array of annotation names.

Remarks

The code sample below flattens the first two annotations on the first page:

using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
{
  //Load a document:
  processor.LoadDocument("..\\..\\Document.pdf");
  PdfPageFacade pageFacade = processor.DocumentFacade.Pages[0];

  var annotations = pageFacade.Annotations;

  string[] names = { annotations[0].Name, annotations[1].Name };
  pageFacade.FlattenAnnotations(names);

  //Save the result:
  processor.SaveDocument("..\\..\\Result.pdf");
}
System.Diagnostics.Process.Start("..\\..\\Result.pdf");
See Also