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 | キーの値が正常に設定されました |