function ReadStructureElements(PageNumber: Integer; const Options: TPdfStructureReadOptions; out Status: TPdfStructureReadStatus): TPdfStructureElements;
ReadStructureElements walks the tagged structure tree for PageNumber (one-based) and returns an owned TPdfStructureElements array with types, titles, MCIDs, kid indexes and reference facts
Status explains an empty result, separating an untagged document from a bounded or failed read
IsTagged first to check whether the document carries a structure tree at allStructureCacheCapacity and StructureElementsForPageVisitStructureElements, which streams visits instead of materialising the whole arrayvar St: TPdfStructureReadStatus;
Elements := Pdf1.ReadStructureElements(1, Default(TPdfStructureReadOptions), St);