function ValidatePdfUa2AnnotationSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2AnnotationSemantics reviews every Annot element and every element that carries an AnnotationSubtype
Ink, Screen, 3D and RichMedia annotations must provide AnnotationContents or AnnotationAlternateText unless the element is marked as an artifact
When both AnnotationContents and AnnotationAlternateText are present they must carry the same text
A Form element may own at most one Widget
A Form element that owns a widget must expose a usable label through LabelText, FieldAlternateName, AlternateText or ActualText, and the widget must have an appearance
Every violation is reported as pvuaiAnnotationSemanticInvalid
AnnotIssues := ValidatePdfUa2AnnotationSemantics(Pdf.StructureElements);