TPDFlibAttachment

Data Types

Description

TPDFlibAttachment is a unified record structure that describes an embedded file attachment, whether it originates from a document-level name tree or a page-level file attachment annotation.

Syntax

Delphi

type TPDFlibAttachment = record
    Source: TPDFlibAttachmentSource;
    Index: Integer;
    Page: Integer;
    FileName: WideString;
    MIMEType: WideString;
    Description: WideString;
    Size: Int64;
  end;

Fields

SourceTPDFlibAttachmentSource 指定的附件來源
Index在其專屬來源集合內從 1 開始的索引(例如在內嵌檔案清單或頁面註解清單內)
Page從 1 開始的頁碼 where the attachment resides if Source is asAnnotAttachment; otherwise 0 if it is document-wide (asEmbeddedFile).
FileName附件檔案的名稱或 Unicode 路徑指定詞
MIMEType內嵌串流的 MIME 內容子類型(例如 image/jpegapplication/xml
Description附件的描述性文字註解
Size未壓縮的資料流檔案大小(以位元組為單位);若缺少大小中繼資料則傳回 0

See also

TPDFlibAttachmentSource, EnumAttachments, SaveAllAttachments