PDFium Delphi Component Docs

ClassifyStructType 함수

유닛: PDFium
구조 요소 형식 이름을 TPdfContentFragmentKind와 선택적 제목 수준으로 분류합니다

구문

function ClassifyStructType(const TypeName: WString; out HeadingLevel: Integer): TPdfContentFragmentKind;

매개변수

TypeNameWString
HeadingLevelInteger

반환 값

TPdfContentFragmentKind: 타입이 태그되지 않았거나 휴리스틱하게만 매핑되면 cfPlain, P는 cfParagraph, H와 H1..H6는 cfHeading, Figure와 Formula는 cfFigure, LI, Lbl, LBody는 cfListItem, TD와 TH는 cfTableCell, Caption은 cfCaption, Link와 Reference는 cfLink, 그 외 태그된 타입은 cfOther입니다

설명

ClassifyStructType은 PDF 구조 요소 /S 이름을 TPdf.ReadableContent가 쓰는 읽기 콘텐츠 조각 종류로 대응시킵니다

구조 요소 타입 이름을 TPdfContentFragmentKind와 선택적 헤딩 레벨로 분류합니다

참고 사항

예제

Kind := ClassifyStructType(TypeName, HeadingLevel);

관련 항목

TPdf.ReadableContent, TPdf.StructureElements, ValidatePdfUaStructureElements