SetCustomInformation

文件屬性

描述

此函式用來在文件中儲存自訂中繼資料。這些值之後可用 GetCustomInformation 函式從文件讀回。資料儲存在 Document Information Dictionary;私有內容或結構資訊則應改用 SetCatalogInformation 函式存進 Document Catalog。

語法

Delphi

Function TPDFlib.SetCustomInformation(Const Key, NewValue: WideString): Integer;

ActiveX

Function PDFlib::SetCustomInformation(Key As String, NewValue As String) As Long

DLL

int DLSetCustomInformation(int InstanceID, const wchar_t * Key, const wchar_t * NewValue);

參數

Key指定要設定哪個鍵
NewValue鍵要設成的值。

傳回值

0無法設定值。Key 參數不可為 "Producer"、"Creator"、"Subject"、"Title"、"Keywords" 或 "Author"。這些鍵請用 SetInformation 函式。
1鍵的值設定成功