PDFium Delphi Component Docs

ClassifyPdfUaNamespace function

Unit: PDFium
Maps a PDF/UA-2 structure namespace URI to its TPdfUaNamespaceKind

Syntax

function ClassifyPdfUaNamespace(const NamespaceUri: WString): TPdfUaNamespaceKind;

Parameters

NamespaceUriWString

Return Value

TPdfUaNamespaceKind

Description

ClassifyPdfUaNamespace recognizes the well-known namespace URIs of ISO/TS 32005 and returns the matching kind

NamespaceUriResult
''punkMissing
http://iso.org/pdf/ssnpunkPdf17
http://iso.org/pdf2/ssnpunkPdf20
http://www.w3.org/1998/Math/MathMLpunkMathMl
http://www.w3.org/ns/aria#punkAria
http://www.w3.org/ns/role/dpub#punkDpub
any other valuepunkCustom

The comparison is exact and case-sensitive, so a URI that differs in scheme, host, path, case, or trailing fragment falls through to punkCustom

Remarks

Example

Kind := ClassifyPdfUaNamespace(Elements[I].NamespaceUri);

See Also

ValidatePdfUa2NamespaceSemantics, ValidatePdfUa2Containment, ValidatePdfUa2FormulaSemantics, TPdf.StructureElements