function AttachmentRelationshipFeaturesAvailable: Boolean;
BooleanAttachmentRelationshipFeaturesAvailable 會在必要時載入選定的 PDFium 模組,並在選用的 FPDFAttachment_GetAFRelationship 進入點已匯出時傳回 True
當該匯出存在時,AttachmentRelationship、ReadAttachmentMetadata 所傳回 TPdfAttachmentMetadata 的 Relationship 欄位,以及 TryGetAnnotationFileAttachment 填入的 Relationship 欄位,都會回報檔案規格的 /AFRelationship 名稱(ISO 32000-2 Table 43)
缺少此匯出時,這些值會讀為空字串,與檔案規格本身沒有 /AFRelationship 項目時的情況完全相同
Source、Data、Alternative、Supplement、EncryptedPayload、FormData、Template、Unspecified),因此它產生的關聯檔案可以透過原生 API 讀回if AttachmentRelationshipFeaturesAvailable and (Pdf.AttachmentRelationship[0] = 'Source') then
ShowMessage('First attachment is the source document');