function ValidatePdfUa2AssociatedFileSemantics(
const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2AssociatedFileSemantics ตรวจทุก element ที่ flag HasAssociatedFile ถูกตั้งไว้
AssociatedFileRelationship ต้องเป็น Source, Data, Alternative, Supplement, EncryptedPayload, FormData หรือ Schema อย่างใดอย่างหนึ่ง และ AssociatedFileDescription ต้องไม่ว่าง มิฉะนั้นจะรายงาน pvuaiAssociatedFileSemanticInvalid
ไฟล์ต้องถูกครอบโดย catalog หรือโดย structure tree และไฟล์ที่ลงทะเบียนใน name tree ของ embedded-files ต้องถูกประกาศใน catalog ด้วย มิฉะนั้นจะรายงาน pvuaiAssociatedFileOwnershipInvalid
ไฟล์ที่ประกาศผ่านโครงสร้างต้องมี AssociatedFileReadingOrderIndex ที่ไม่ติดลบ ไม่ซ้ำกัน และไม่ลดลงตามลำดับการประกาศในโครงสร้าง มิฉะนั้นจะรายงาน pvuaiAssociatedFileReadingOrderInvalid
ไฟล์ต้องค้นพบได้ ก็คือถูกประกาศผ่าน catalog หรือผ่านโครงสร้างพร้อม reading order index ที่ถูกต้อง มิฉะนั้นจะรายงาน pvuaiAssociatedFileDiscoverabilityInvalid
FileIssues := ValidatePdfUa2AssociatedFileSemantics(Pdf.StructureElements);