PDFium Component Docs

StructureElements Właściwość

Component: TPdf  ·  Unit: PDFium
Zwraca spłaszczony snapshot struktury logicznej dla bieżącej oznakowanej strony PDF

Syntax

property StructureElements: TPdfStructureElements; // read only

Description

Wymaga Active ustawionego na True oraz ważnego bieżącego PageNumber

Elementy są zwracane w porządku pre-order, ze stabilnymi wartościami Level i ParentIndex

Zwracana tablica to należący do wywołującego głęboki snapshot, a jej zmiana nie modyfikuje współdzielonej pamięci podręcznej ani PDF

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, Structure traversal and cache