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
| Source | 由 TPDFlibAttachmentSource 指定的附件來源 |
|---|---|
| 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/jpeg 或 application/xml) |
| Description | 附件的描述性文字註解 |
| Size | 未壓縮的資料流檔案大小(以位元組為單位);若缺少大小中繼資料則傳回 0 |
See also
TPDFlibAttachmentSource, EnumAttachments, SaveAllAttachments