Table of Contents

Class PdfAnnotation

Namespace
MiPdf
Assembly
MiPdf.dll

A read/write view of an annotation dictionary.

public sealed class PdfAnnotation
Inheritance
PdfAnnotation
Inherited Members

Properties

Author

Author (/T).

public string? Author { get; set; }

Property Value

string

Color

Color (/C) as RGB, gray or CMYK components.

public double[]? Color { get; }

Property Value

double[]

Contents

Text of the annotation (/Contents).

public string? Contents { get; set; }

Property Value

string

Dictionary

The annotation dictionary.

public PdfDictionary Dictionary { get; }

Property Value

PdfDictionary

Flags

Annotation flags (/F): 1 invisible, 2 hidden, 4 print, 8 no zoom, 16 no rotate, 32 no view, 64 read-only, 128 locked.

public int Flags { get; set; }

Property Value

int

ModificationDate

Last modification date (/M).

public DateTimeOffset? ModificationDate { get; }

Property Value

DateTimeOffset?

Rect

The annotation rectangle (/Rect) in default user space units (points); an empty rectangle if missing.

public PdfRectangle Rect { get; set; }

Property Value

PdfRectangle

Reference

The indirect reference of the annotation dictionary, or null if it is a direct object.

public PdfReference? Reference { get; }

Property Value

PdfReference

Subtype

Annotation type, e.g. "Link", "Text", "Widget", "FreeText".

public string Subtype { get; }

Property Value

string

Uri

The URI of a link annotation with a URI action.

public string? Uri { get; }

Property Value

string

Methods

ExtractImages()

Images in the annotation's appearance (e.g. the image of a visible signature), with page coordinates.

public IReadOnlyList<PdfExtractedImage> ExtractImages()

Returns

IReadOnlyList<PdfExtractedImage>