property StructureElements: TPdfStructureElements; // read only
要求 Active 为 True 且当前 PageNumber 有效
元素按先序返回,Level 与 ParentIndex 值稳定,同时携带 RoleMap 解析后的 TypeName;当 StructureElementRawTypeFeaturesAvailable 为 True 时还携带未映射的 RawTypeName
返回的数组是由调用方持有的深拷贝快照,修改它不会影响共享缓存或 PDF
var
Items: TPdfStructureElements;
begin
if Pdf1.Active then
begin
Items := Pdf1.StructureElements;
Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
end;
end;