PDFium Delphi Component Docs

ฟังก์ชัน ValidatePdfUa2AssociatedFileSemantics

Unit: PDFium
ตรวจ relationship ความเป็นเจ้าของ ลำดับการอ่าน และการค้นพบ ของ associated files ใน PDF/UA-2

Syntax

function ValidatePdfUa2AssociatedFileSemantics(
  const Elements: TPdfStructureElements): TPdfUaValidationIssues;

Parameters

ElementsTPdfStructureElements

Return Value

TPdfUaValidationIssues

Description

ValidatePdfUa2AssociatedFileSemantics ตรวจทุก 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

Remarks

Example

FileIssues := ValidatePdfUa2AssociatedFileSemantics(Pdf.StructureElements);

See Also

ValidatePdfUa2StructureElements, ValidatePdfUa2FormulaSemantics, TPdf.StructureElements, TPdf.ValidatePdfUa