PDFium Delphi Component Docs

ValidatePdfUa2AnnotationSemantics function

Unit: PDFium
Checks annotation and Widget structure semantics recorded on flattened TPdfStructureElement data

Syntax

function ValidatePdfUa2AnnotationSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;

Parameters

ElementsTPdfStructureElements

Return Value

TPdfUaValidationIssues

Description

ValidatePdfUa2AnnotationSemantics 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

Remarks

Example

AnnotIssues := ValidatePdfUa2AnnotationSemantics(Pdf.StructureElements);

See Also

ValidatePdfUa2StructureElements, ValidatePdfUaStructureElements, TPdf.StructureElements, TPdf.ValidatePdfUa