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 が利用する readable-content フラグメント種別へ対応付けます

構造要素のタイプ名を TPdfContentFragmentKind と必要に応じて見出しレベルへ分類します

備考

例

Kind := ClassifyStructType(TypeName, HeadingLevel);

関連項目

TPdf.ReadableContent, TPdf.StructureElements, ValidatePdfUaStructureElements