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 | Normalized /Rect in PDF user space per ISO 32000-1 §7.9.5: Left <= Right and Bottom <= Top, with indirect arrays and numbers resolved; zeros when the entry is missing or any of its first four entries is not a number |
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