TPDFlibAttachment
資料類型
描述
TPDFlibAttachment 是統一的記錄結構,描述內嵌檔案附件——不論它來自文件層級的名稱樹,還是頁面層級的檔案附件註解
語法
Delphi
type TPDFlibAttachment = record
Source: TPDFlibAttachmentSource;
Index: Integer;
Page: Integer;
FileName: WideString;
MIMEType: WideString;
Description: WideString;
Size: Int64;
CreationDate: WideString;
ModificationDate: WideString;
Checksum: AnsiString;
AFRelationship: WideString;
ObjectNumber: Integer;
end;參數
| Source | 由 TPDFlibAttachmentSource 指定的附件來源 |
|---|---|
| Index | 在其專屬來源集合內從 1 開始的索引(例如在內嵌檔案清單或頁面註解清單內) |
| Page | 從 1 開始的頁碼 where the attachment resides if asAnnotAttachment is 0; otherwise asEmbeddedFile if it is document-wide (asEmbeddedFile).FileName附件檔案的名稱或 Unicode 路徑指定詞 |
| MIMEType | 內嵌串流的 MIME 內容子類型(例如 /UF 或 /F) |
| Description | 附件的描述性文字註解 |
| Size | 未壓縮的資料流檔案大小(以位元組為單位);若缺少大小中繼資料則傳回 |
| Size | /Params /Size0 |
| CreationDate | /Params /CreationDate |
| ModificationDate | /Params /ModDate |
| Checksum | /Params /CheckSum |
| AFRelationship | SourceDataAlternative |
| ObjectNumber | 0 |
另請參閱
EnumAttachments
另請參閱
TPDFlibAttachmentSourceTPDFlibAttachmentSource, EnumAttachments, SaveAllAttachments