THPDFSemanticTextLayout Record
위치가 있는 페이지 글리프에 대한 시맨틱 읽기 순서 분석 결과입니다
THPDFSemanticTextLayout = record
Lines: THPDFSemanticTextLines;
ColumnCount: Integer;
TableCount: Integer;
MedianAdvance: Double;
MedianFontSize: Double;
end;
유닛은 HPDFContentStream입니다. Lines는 셀, 존, 테이블, 리스트 레벨, 소스 순서 메타데이터를 포함한 감지된 읽기 순서 라인을 담습니다
라인 레코드
Lines의 각 요소는 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는 블록 역할로 라인을 분류합니다
Left, Bottom, Right, Top은 사용자 공간의 라인 박스입니다. BaselineY는 베이스라인이고 FontSize는 지배적인 폰트 크기입니다
ColumnIndex와 ZoneIndex는 읽기 컬럼과 존을 식별하고, TableIndex, TableRowIndex, ListLevel, SourceOrder는 라인이 표, 리스트, 원래 글리프 순서에서 어디에 놓이는지 알려줍니다
셀 레코드
Cells의 각 요소는 THPDFSemanticTextCell입니다.
THPDFSemanticTextCell = record
Text: UnicodeString;
Left, Bottom, Right, Top: Double;
FirstGlyphIndex, LastGlyphIndex: Integer;
end;
Text는 셀 텍스트이고 네 박스 필드는 사용자 공간에서 셀을 서술합니다. FirstGlyphIndex와 LastGlyphIndex는 페이지 글리프 배열에 대한 양끝 포함 인덱스입니다
블록 종류
THPDFSemanticBlockKind는 THPDFSemanticTextLine.Kind를 sbkParagraph, sbkHeading, sbkListItem, sbkTableRow, sbkCaption으로 분류합니다
ColumnCount와 TableCount는 감지된 구조를 요약하고, 두 중앙값은 사용자 공간 포인트 단위의 전형적인 글리프 어드밴스와 폰트 크기를 특징짓습니다
이 레코드는 HPDFAnalyzeSemanticTextLayout이 채우며, 페이지별로는 THPDFHeadlessDocument.AnalyzePageSemanticText와 로드된 문서용 대응 메서드가 노출합니다