THPDFSemanticTextLine 记录

一条检测出的阅读顺序行,带全套结构元数据

THPDFSemanticTextLine = record
  Text: UnicodeString;
  Cells: THPDFSemanticTextCells;
  Kind: THPDFSemanticBlockKind;
  Left, Bottom, Right, Top: Double;
  BaselineY: Double;
  FontSize: Double;
  ColumnIndex: Integer;
  ZoneIndex: Integer;
  TableIndex: Integer;
  TableRowIndex: Integer;
  ListLevel: Integer;
  SourceOrder: Integer;
end;

Text 是行文本,Cells 持有可选的表格单元格,Kind 按块角色给行分类;盒子字段在用户空间里描述该行,BaselineY 是基线,FontSize 是主导字号

ColumnIndex 与 ZoneIndex 标出阅读列与阅读区域,TableIndex 与 TableRowIndex 定位表格行,ListLevel 与 SourceOrder 给出列表层级和原始字形顺序

一次页面分析得到的行都由 THPDFSemanticTextLayout.Lines 携带

THPDFSemanticTextLayout · THPDFSemanticTextCell · THPDFSemanticBlockKind