Page.Annotations Property
Gets the collection of annotation dictionaries that contain indirect references to all annotations associated with the page.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| AnnotationCollection | A collection of annotations. |
Remarks
The PDF Document API supports the following annotation types:
- Markup Annotations
- Annotations used to mark up document content. The following markups are available:
- Non-Markup Annotations
- Annotations that do not directly mark up document content. The following non-markup annotations are available:
Example
How to: Create a Text Annotation in a PDF Document
The following code snippet opens the Invoice.pdf file, adds a TextAnnotation to the first page, and saves the file:

FileStream fs = File.OpenRead("Invoice.pdf");
var options = new LoadOptions();
PdfDocument document = new PdfDocument(fs, options);
TextAnnotation textAnnotation = new TextAnnotation(new RectangleF(85, 405, 20, 20)) {
Color = Color.Yellow,
Title = "Brian Zetc",
Content = "This is an excellent overview."
};
document.Pages[0].Annotations.Add(textAnnotation);
document.Save(new FileStream("Invoice2.pdf", FileMode.Create, FileAccess.Write));
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo("Invoice2.pdf") { UseShellExecute = true });
See Also