PDFium Delphi Component Docs

StructureElements プロパティ

コンポーネント: TPdf  ·  ユニット: PDFium
現在のタグ付き PDF ページに対する、フラット化された論理構造スナップショットを返します

構文

property StructureElements: TPdfStructureElements; // read only

説明

Active が True であることと、有効な現在の PageNumber が必要です

要素は pre-order で返され、Level と ParentIndex の値は安定しています

返される配列は呼び出し側所有のディープスナップショットであり、変更しても共有キャッシュや PDF は変更されません

備考

例

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

関連項目

IsTagged, Structure traversal and cache