function ValidatePdfUa2DocumentSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2DocumentSemantics 仅凭结构树数据验证 PDF/UA-2(ISO 14289-2)标记文档的文档级结构语义,无需加载 pdfium.dll
它验证非空元素列表包含一个根 Document 元素,并对每个 Note 元素进行报告,因为 ISO 14289-2 结构树改用 FENote
FENote 元素必须携带一个 ID 和一个 Reference 子元素
每个父节点最多只能有一个 Caption 子元素和一个 Title 子元素
LI 元素必须恰好包含一个 Lbl 子元素和一个 LBody 子元素
没有 Reference 子元素的 TOCI 元素报告为 pvuaiTocReferenceMissing
其余违规都报告为 pvuaiDocumentSemanticInvalid
Conformance = puc2 的 ValidatePdfUaStructureElements 进入这些检查Issues := ValidatePdfUa2DocumentSemantics(Pdf.StructureElements);