PDFium Delphi Component Docs

ClassifyStructType function

Unit: PDFium
Classifies a structure element type name into a TPdfContentFragmentKind and optional heading level

Syntax

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

Parameters

TypeNameWString
HeadingLevelInteger

Return Value

TPdfContentFragmentKind: cfPlain when the type is untagged or only heuristically mapped, cfParagraph for P, cfHeading for H and H1..H6, cfFigure for Figure and Formula, cfListItem for LI, Lbl, and LBody, cfTableCell for TD and TH, cfCaption for Caption, cfLink for Link and Reference, and cfOther for any other tagged type

Description

ClassifyStructType maps a PDF structure element /S name to the readable-content fragment kind used by TPdf.ReadableContent

Classifies a structure element type name into a TPdfContentFragmentKind and optional heading level

Remarks

Example

Kind := ClassifyStructType(TypeName, HeadingLevel);

See Also

TPdf.ReadableContent, TPdf.StructureElements, ValidatePdfUaStructureElements