THPDFLoadedAnnotationInfo Record
Read-only metadata for one annotation of a loaded page, extracted from its annotation dictionary: subtype, contents, rectangle, title, flags, appearance presence, object number, and page index
Declaration
THPDFLoadedAnnotationInfo= record
Subtype: AnsiString;
Contents: AnsiString;
Rect: THPDFRect;
Title: AnsiString;
Flags: Integer;
HasAppearance: boolean;
ObjectNumber: Integer;
PageIndex: Integer;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Subtype | Annotation /Subtype name, such as Text, Link, or RichMedia |
Contents | Annotation /Contents text |
Rect | /Rect array mapped to THPDFRect as Left, Top, Right, Bottom; zeros when the entry is missing or malformed |
Title | Annotation /T title (author) string |
Flags | Annotation /F flag integer, zero when the entry is absent |
HasAppearance | true when the annotation dictionary carries an /AP entry |
ObjectNumber | Indirect object number of the annotation dictionary |
PageIndex | Owning zero-based page index, echoing the requested page |
Usage notes
- Enumerate annotations with
THotPDF.GetLoadedAnnotationCountand fetch each one withTHotPDF.GetLoadedAnnotationInfo; afalseresult leaves the record zeroed - Use
ObjectNumberwithTHotPDF.GetLoadedAnnotationDictwhen you need entries beyond the summary fields - The FDF interchange exporter consumes this record to serialize annotations, so its fields define exactly what round-trips through FDF