PDFium Delphi Component 文件

AttachmentRelationshipFeaturesAvailable 函式

單元: PDFium
回報已載入的 pdfium.dll 是否匯出 FPDFAttachment_GetAFRelationship

Syntax

function AttachmentRelationshipFeaturesAvailable: Boolean;

Parameters

無

Return Value

Boolean

Description

AttachmentRelationshipFeaturesAvailable 會在必要時載入選定的 PDFium 模組,並在選用的 FPDFAttachment_GetAFRelationship 進入點已匯出時傳回 True

當該匯出存在時,AttachmentRelationship、ReadAttachmentMetadata 所傳回 TPdfAttachmentMetadata 的 Relationship 欄位,以及 TryGetAnnotationFileAttachment 填入的 Relationship 欄位,都會回報檔案規格的 /AFRelationship 名稱(ISO 32000-2 Table 43)

缺少此匯出時,這些值會讀為空字串,與檔案規格本身沒有 /AFRelationship 項目時的情況完全相同

Remarks

Example

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

See Also

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable