• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Annotation

Abstract base class for all PDF annotations (spec §12.5.1). Every annotation is associated with a page and has a rectangular active area (the /Rect entry) plus optional common entries: /Contents, /Name, /M, /F (flags), /C (color), /BS (border style), /A (action), and /AP (appearance).

Inheritance
object
Annotation
LineAnnotation
LinkAnnotation
MarkupAnnotation
PolygonAnnotation
PolylineAnnotation
PopupAnnotation
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Pdf.Annotations
Assembly: DRIT.Pdf.dll
Syntax
public abstract class Annotation

Properties

Border

Border style (/BS). When null, a default solid border of width 1 is assumed.

Declaration
public BorderStyle? Border { get; set; }
Property Value
Type Description
BorderStyle

Color

Border color as an RGB color, or null for no border (/C).

Declaration
public PdfColor? Color { get; set; }
Property Value
Type Description
PdfColor?

Contents

Text contents of the annotation (/Contents). Displayed as a tooltip by most viewers.

Declaration
public string? Contents { get; set; }
Property Value
Type Description
string

Flags

Annotation flags controlling visibility and interaction (/F).

Declaration
public AnnotationFlags Flags { get; set; }
Property Value
Type Description
AnnotationFlags

Modified

Date and time when the annotation was last modified (/M).

Declaration
public DateTimeOffset? Modified { get; set; }
Property Value
Type Description
DateTimeOffset?

Name

Annotation name, a PDF name unique within the page (/NM).

Declaration
public string? Name { get; set; }
Property Value
Type Description
string

Rect

The bounding rectangle of the annotation in page user-space units.

Declaration
public PdfRect Rect { get; set; }
Property Value
Type Description
PdfRect
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX