PDFium Delphi Component Docs

ClassifyStructType funzione

Unità: PDFium
Classifica un nome tipo di elemento struttura come TPdfContentFragmentKind e livello titolo facoltativo

Sintassi

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

Parametri

TypeNameWString
HeadingLevelInteger

Valore restituito

TPdfContentFragmentKind: cfPlain quando il tipo è privo di tagging o mappato solo euristicamente, cfParagraph per P, cfHeading per H e H1..H6, cfFigure per Figure e Formula, cfListItem per LI, Lbl e LBody, cfTableCell per TD e TH, cfCaption per Caption, cfLink per Link e Reference, e cfOther per qualsiasi altro tipo con tagging

Descrizione

ClassifyStructType associa il nome /S di un elemento di struttura PDF al tipo di frammento readable-content usato da TPdf.ReadableContent

Classifica il nome di tipo di un elemento di struttura in un TPdfContentFragmentKind con eventuale livello di intestazione

Osservazioni

Esempio

Kind := ClassifyStructType(TypeName, HeadingLevel);

Vedi anche

TPdf.ReadableContent, TPdf.StructureElements, ValidatePdfUaStructureElements