PDFium Delphi Component 文件

AttachmentRelationshipFeaturesAvailable 函数

单元: PDFium
报告已加载的 pdfium.dll 是否导出了 FPDFAttachment_GetAFRelationship

语法

function AttachmentRelationshipFeaturesAvailable: Boolean;

参数

无

返回值

Boolean

说明

AttachmentRelationshipFeaturesAvailable 在必要时加载所选的 PDFium 模块,并在可选的 FPDFAttachment_GetAFRelationship 入口点已导出时返回 True

该导出存在时,AttachmentRelationship、ReadAttachmentMetadata 返回的 TPdfAttachmentMetadata 的 Relationship 字段,以及 TryGetAnnotationFileAttachment 填充的 Relationship 字段,都会给出文件规范的 /AFRelationship 名称(ISO 32000-2 Table 43)

缺少该导出时,这些值都读作空字符串,与文件规范本来就不带 /AFRelationship 条目的情形完全一样

备注

示例

if AttachmentRelationshipFeaturesAvailable and (Pdf.AttachmentRelationship[0] = 'Source') then
  ShowMessage('First attachment is the source document');

参见

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable