PDFium Delphi Component Docs

SetAttachmentStringValue 方法

元件: TPdf  ·  單元: PDFium
將一個字串項目寫入附件的 file specification 字典

語法

procedure SetAttachmentStringValue(Index: Integer; const Key, Value: WString);

IndexInteger. 文件層級附件以零為基底的索引
KeyWString. 要寫入的 file specification 字典項目名稱
ValueWString. 要儲存在該鍵下的文字

說明

在內嵌檔案上儲存私有中繼資料,讓工作流程把自身的簿記資訊隨附件一起保存,而不是放在可能與文件分離的側通道

寫入既有的鍵會取代其值。索引超出附件清單,或 PDFium 版本不具備此能力時,文件維持不變

此變更存在於記憶體內文件中,直到檔案被 SaveAs 或其變體寫出為止

另請參閱

GetAttachmentStringValue, AttachmentHasKey, CreateAttachment, SaveAs