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');