THPDFLayoutDiagnostic Record

單一結構化版面事件:發生了什麼與原因、涉及的頁面與矩形、行數、元素路徑,以及元素在原始碼中的選填位置

宣告

THPDFLayoutDiagnostic= record
  Kind: THPDFLayoutDiagnosticKind;
  PageIndex: Integer;
  RelatedPageIndex: Integer;
  X: Single;
  Y: Single;
  Width: Single;
  Height: Single;
  LineCount: Integer;
  Reason: AnsiString;
  ElementPath: AnsiString;
  RelatedElementPath: AnsiString;
  SourceFile: AnsiString;
  SourceLine: Integer;
  SourceColumn: Integer;
end;

單元

HPDFDoc

欄位

欄位用途
KindTHPDFLayoutDiagnosticKind 事件類別,例如 ldkAutomaticPageBreak 或 ldkKeepWithNext
PageIndex事件發生的零基頁索引
RelatedPageIndex跨頁事件的配對頁面,例如元素分割到下一頁
X / Y / Width / Height事件涉及的放置矩形,術語與 THPDFLayoutBounds 相同
LineCount涉及的文字行數,例如自動分頁前已排版的行數
Reason說明記錄此事件原因的人類可讀文字
ElementPath事件所屬版面元素的路徑
RelatedElementPath重疊與分割事件中配對元素的路徑
SourceFile / SourceLine / SourceColumn啟用來源位置擷取時,透過 SetDiagnosticSource 擷取的宣告位置

使用說明

相關 API