SetCustomInformation

文档属性

描述

此函数用于在文档中存储自定义元数据。这些值稍后可通过 GetCustomInformation 函数从文档中读取。数据存储在文档信息字典中。私有内容或结构信息应改为使用 SetCatalogInformation 函数存储在文档 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键的值已成功设置