Docs PDFiumVCL

StructureElements property

Esta entrada API preserva identificadores, assinaturas, blocos de código e termos PDF em sua forma original.
Component: TPdf  ·  Unit: PDFium
Indexed property — returns the children of a logical structure tree element (StructTree)

Syntax

property StructureElements: TPdfStructureElements; // read only

Description

Indexed read-only property that returns the children of a logical structure tree element (StructTree)

Requires Active to be True. The result is undefined when the index is outside the valid range; pass values in 0 .. - 1 (or use the array's Length for non-counted variants).

The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records.

Remarks

Example

var
  Items: TPdfStructureElements;
begin
  if Pdf1.Active then
  begin
    Items := Pdf1.StructureElements;
    Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
  end;
end;

See Also

IsTagged