PDFium Delphi Component Docs

ValidatePdfUa2FormulaSemantics function

Unit: PDFium
Validates Formula fallback text, MathML containment, and associated-file relationships in a PDF/UA-2 structure tree

Syntax

function ValidatePdfUa2FormulaSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;

Parameters

ElementsTPdfStructureElements

Return Value

TPdfUaValidationIssues

Description

ValidatePdfUa2FormulaSemantics checks that every Formula element provides a fallback for assistive technology through AlternateText, ActualText, or an associated file, otherwise pvuaiFormulaSemanticInvalid is reported

An element in the MathML namespace must be nested inside a Formula element or inside another MathML-namespaced element, otherwise pvuaiFormulaSemanticInvalid is reported

Any element with an associated file must carry a non-empty AssociatedFileDescription and one of the seven standard relationships (Source, Data, Alternative, Supplement, EncryptedPayload, FormData, or Schema), otherwise pvuaiAssociatedFileSemanticInvalid is reported

Remarks

Example

FormulaIssues := ValidatePdfUa2FormulaSemantics(Pdf.StructureElements);

See Also

ValidatePdfUa2StructureElements, ValidatePdfUa2AssociatedFileSemantics, ClassifyPdfUaNamespace, TPdf.StructureElements