PDFium Delphi Component Docs

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