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