function ValidatePdfUa2DocumentSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2DocumentSemantics 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 restricted 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
Conformance = puc2Issues := ValidatePdfUa2DocumentSemantics(Pdf.StructureElements);