function ValidatePdfUa2FormulaSemantics(const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2FormulaSemantics는 ISO 14289-2 §8.2.5.29/1을 적용합니다: 수학 구조 요소는 Formula 요소 안이나 다른 수학 요소 안에 중첩되어야 합니다. Formula 요소가 AlternateText, ActualText, 연관 파일을 가질 것을 요구하지 않으며, PDF/UA-1 §7.7의 폴백 요구는 ValidatePdfUaStructureElements가 따로 담당합니다
수학 구조 요소는 MathML 네임스페이스, MathML 네임스페이스로 해석되는 역할 맵, 또는 /S /Math 역할 이름으로 인식됩니다. 네이티브 페이지 스냅샷이 네임스페이스 필드를 비워 둘 수 있으므로 역할 이름이 부모 검사를 계속 유효하게 만듭니다. 부모가 Formula도 다른 수학 요소도 아닌 수학 요소는 pvuaiFormulaSemanticInvalid를 보고합니다
연관 파일을 갖는 모든 요소는 비어 있지 않은 AssociatedFileDescription과 일곱 가지 표준 관계(Source, Data, Alternative, Supplement, EncryptedPayload, FormData, Schema) 중 하나를 가져야 하며, 그렇지 않으면 pvuaiAssociatedFileSemanticInvalid가 보고됩니다
NamespaceUri와 RoleMappedNamespaceUri 모두에서 ClassifyPdfUaNamespace로 확인합니다. 네이티브 페이지 스냅샷이 이를 비워 둘 수 있으므로 /S /Math 역할 이름도 받아들입니다FormulaIssues := ValidatePdfUa2FormulaSemantics(Pdf.StructureElements);