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 absent or malformed |
Title | Annotation /T title (author) string |
Flags | Annotation /F flag integer, zero when the entry is missing |
HasAppearance | true when the annotation dictionary has an /AP entry |
ObjectNumber | Indirect object number of the annotation dictionary |
PageIndex | Owning zero-based page index, mirroring the requested page |
Usage notes
- Enumerate annotations with
THotPDF.GetLoadedAnnotationCountand fetch each one withTHotPDF.GetLoadedAnnotationInfo; afalseresult leaves the record set to zero - Use
ObjectNumberwithTHotPDF.GetLoadedAnnotationDictwhen you need entries that go beyond the summary fields - The FDF interchange exporter consumes this record when serialising annotations, so its fields define exactly what round-trips through FDF