TPDFlibPageElement

資料類型、內容串流編輯

描述

EnumPageElements 傳回的統一記錄,代表非空文字顯示、具體影像放置或已繪製路徑;其不透明 ID 與指令定位器會將結果繫結到精確的可編輯繪製物件

語法

Delphi

Type TPDFlibPageElement= Record
  ElementID: Integer;
  Kind: TPDFlibPageElementKind;
  Page: Integer;
  ContentLayer: Integer;
  FirstInstruction: Integer;
  LastInstruction: Integer;
  Left, Top, Right, Bottom: Double;
  Text: WideString;
  FontName: WideString;
  FontSize: Double;
  ImageID: Integer;
  PointCount: Integer;
  IsClosed: Boolean;
  PaintOp: WideString;
End;

參數

ElementID頁面元素變更、有效剪裁路徑與標記內容查詢 API 接受的不透明控制代碼
Kind文字、影像或路徑分類
Page以 1 為起始的頁碼
ContentLayer以 1 為起始的內容層
FirstInstruction包含式來源範圍中的第一個以零為基底指令
LastInstruction包含式來源範圍中的最後一個以零為基底指令
Left, Top, Right, Bottom目前頁面座標系統中的軸對齊邊界
Text, FontName, FontSizeekText 的文字中繼資料
ImageIDekImage 的影像資源控制代碼
PointCount, IsClosed, PaintOpekPath 的路徑中繼資料

生命週期

ElementID 在同一個 TPDFlib 執行個體上的下一次列舉或成功頁面元素變更之前保持有效