PDFium Delphi Component Docs

ClassifyStructType función

Unidad: PDFium
Clasifica un nombre de tipo de elemento estructural en TPdfContentFragmentKind y un nivel de encabezado opcional

Sintaxis

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

Parámetros

TypeNameWString
HeadingLevelInteger

Valor devuelto

TPdfContentFragmentKind: cfPlain cuando el tipo no está etiquetado o solo se mapeó de forma heurística, cfParagraph para P, cfHeading para H y H1..H6, cfFigure para Figure y Formula, cfListItem para LI, Lbl y LBody, cfTableCell para TD y TH, cfCaption para Caption, cfLink para Link y Reference, y cfOther para cualquier otro tipo etiquetado

Descripción

ClassifyStructType asigna un nombre /S de elemento de estructura del PDF al tipo de fragmento de contenido legible que usa TPdf.ReadableContent

Clasifica un nombre de tipo de elemento estructural en un TPdfContentFragmentKind y un nivel de encabezado opcional

Observaciones

Ejemplo

Kind := ClassifyStructType(TypeName, HeadingLevel);

Ver también

TPdf.ReadableContent, TPdf.StructureElements, ValidatePdfUaStructureElements