PDFium Delphi Component Docs

ValidatePdfUa2DocumentSemantics function

Unit: PDFium
Runs the ISO 14289-2 document-level semantic checks over flattened TPdfStructureElement data

Syntax

function ValidatePdfUa2DocumentSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;

Parameters

ElementsTPdfStructureElements

Return Value

TPdfUaValidationIssues

Description

ValidatePdfUa2DocumentSemantics validates the document-level structure semantics of a PDF/UA-2 (ISO 14289-2) tagged document from structure-tree data alone, without loading pdfium.dll

It verifies that a non-empty element list contains a root Document element and reports every Note element, because ISO 14289-2 structure trees use FENote instead

An FENote element must carry an ID and a Reference child

Every parent node is limited to a single Caption child and a single Title child

An LI element must contain exactly one Lbl and exactly one LBody child

A TOCI element without a Reference child is reported as pvuaiTocReferenceMissing

All other violations are reported as pvuaiDocumentSemanticInvalid

Remarks

Example

Issues := ValidatePdfUa2DocumentSemantics(Pdf.StructureElements);

See Also

ValidatePdfUa2StructureElements, ValidatePdfUaStructureElements, TPdf.StructureElements, TPdf.ValidatePdfUa