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

擁有 widget 的 Form 元素必須透過 LabelText、FieldAlternateName、AlternateText 或 ActualText 公開可用的標籤,且該 widget 必須具有外觀

每個違規都以 pvuaiAnnotationSemanticInvalid 回報

備註

範例

AnnotIssues := ValidatePdfUa2AnnotationSemantics(Pdf.StructureElements);

另請參閱

ValidatePdfUa2StructureElements, ValidatePdfUaStructureElements, TPdf.StructureElements, TPdf.ValidatePdfUa