GetAnnotState

Annotations and hotspot links

Description

GetAnnotState reads the /State text string of a review-state Text annotation (ISO 32000-1 §12.5.6.3), for example Accepted, Rejected, Cancelled, Completed, None, Marked or Unmarked.

Syntax

Delphi

Function TPDFlib.GetAnnotState(Index: Integer): WideString;

Parameters

Index is the 1-based index of the annotation on the selected page.

Return Values

Returns the /State value as a string, or an empty string when the annotation carries no /State entry (ordinary annotations that are not review-state replies).

Remarks

Pair with GetAnnotStateModel to learn which state model the value belongs to, and with GetAnnotIntProperty Tag 128 to resolve the 1-based index of the annotation the reply refers to. State annotations are created with AddAnnotationState.