PDFium Delphi Component Docs

GetAttachmentStringValue 方法

元件: TPdf  ·  單元: PDFium
從附件的檔案規格字典讀取單一字串項目

語法

function GetAttachmentStringValue(Index: Integer; const Key: WString): WString;

IndexInteger. 文件層級附件以零為基底的索引
KeyWString. 檔案規格字典項目的名稱
ResultWString. 儲存的值;鍵不存在或不含文字時為空字串

說明

讀取產生器隨內嵌檔案一併儲存的私有中繼資料 - 來源路徑、內容雜湊、工作流程標記 - 而不必碰觸原始文件結構

空結果同時涵蓋鍵不存在與值為空的情況;若兩者的差異很重要,請使用 AttachmentHasKey

標準項目各有專屬屬性:AttachmentName、AttachmentType 與 AttachmentDescription

另請參閱

SetAttachmentStringValue, AttachmentHasKey, Attachment, AttachmentDescription