PDFium Delphi Component Docs

StructureElements 속성

컴포넌트: TPdf  ·  유닛: PDFium
현재 태그된 PDF 페이지의 평탄화된 논리 구조 스냅샷을 반환합니다

Syntax

property StructureElements: TPdfStructureElements; // read only

Description

Active가 True이고 현재 PageNumber가 유효해야 합니다

요소는 안정적인 Level과 ParentIndex 값을 가진 채 전위 순회(pre-order) 순서로 반환됩니다

반환된 배열은 호출자 소유의 깊은 스냅샷이며, 이를 변경해도 공유 캐시나 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, 구조 트리 순회 및 캐시