function AttachmentRelationshipFeaturesAvailable: Boolean;
BooleanAttachmentRelationshipFeaturesAvailable은 필요할 때 선택한 PDFium 모듈을 로드하고, 선택 사항인 FPDFAttachment_GetAFRelationship 엔트리 포인트가 익스포트되어 있으면 True를 반환합니다
익스포트가 있으면 AttachmentRelationship, ReadAttachmentMetadata가 반환하는 TPdfAttachmentMetadata의 Relationship 필드, 그리고 TryGetAnnotationFileAttachment가 채우는 Relationship 필드가 file specification의 /AFRelationship 이름(ISO 32000-2 Table 43)을 보고합니다
익스포트가 없으면 이 값들은 /AFRelationship 항목이 아예 없는 file specification에서와 똑같이 빈 문자열로 읽힙니다
Source, Data, Alternative, Supplement, EncryptedPayload, FormData, Template, Unspecified)을 내보내므로, 이 라이터가 만든 associated file은 네이티브 API로 그대로 읽힙니다if AttachmentRelationshipFeaturesAvailable and (Pdf.AttachmentRelationship[0] = 'Source') then
ShowMessage('First attachment is the source document');