PDFium Delphi Component Docs

ValidatePdfUa2AnnotationSemantics 函数

单元: PDFium
检查记录在扁平化 TPdfStructureElement 数据上的注释与 Widget 结构语义

语法

function ValidatePdfUa2AnnotationSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;

参数

ElementsTPdfStructureElements

返回值

TPdfUaValidationIssues

说明

ValidatePdfUa2AnnotationSemantics 检查每个 Annot 元素以及每个携带 AnnotationSubtype 的元素

Ink、Screen、3D 和 RichMedia 注释必须提供 AnnotationContents 或 AnnotationAlternateText,除非元素被标记为 artifact

当 AnnotationContents 与 AnnotationAlternateText 同时存在时,二者必须携带相同的文本

一个 Form 元素最多拥有一个 Widget

拥有控件的 Form 元素必须能通过 LabelText、FieldAlternateName、AlternateText 或 ActualText 提供可用的标签,且该控件必须具有外观

每处违规都报告为 pvuaiAnnotationSemanticInvalid

备注

示例

AnnotIssues := ValidatePdfUa2AnnotationSemantics(Pdf.StructureElements);

参见

ValidatePdfUa2StructureElements, ValidatePdfUaStructureElements, TPdf.StructureElements, TPdf.ValidatePdfUa