SetCatalogInformation
文書プロパティ
説明
この関数を使用すると、PDF 文書にカスタム情報を格納できます。SetCustomInformation 関数と似ていますが、情報は Document Information Dictionary ではなく Document Catalog に格納されます。メタデータは SetCustomInformation を使用して Document Information Dictionary に格納し、非公開コンテンツまたは構造情報はこの関数を使用して Document Catalog に格納する必要があります
キーには、ライブラリまたは PDF 仕様が管理する Catalog システムキーを指定できません。予約名には Type、Version、Extensions、Pages、PageLabels、Names、Dests、ViewerPreferences、OpenAction、AA、AcroForm、Metadata、StructTreeRoot、MarkInfo、Lang、SpiderInfo、OutputIntents、PieceInfo、OCProperties、Perms、Legal、Requirements、Collection、および NeedsRendering が含まれます
構文
Delphi
Function TPDFlib.SetCatalogInformation(Const Key, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetCatalogInformation(Key As String, NewValue As String) As Long
DLL
int DLSetCatalogInformation(int InstanceID, const wchar_t * Key, const wchar_t * NewValue);
パラメータ
| Key | 設定するキーの名前です。他のソフトウェアとの競合を避けるため、このキーには Adobe から割り当てられた特別な接頭辞が必要です |
|---|---|
| NewValue | 指定したキーの新しい値 |
戻り値
| 0 | 指定したキーを設定できませんでした。システムキーだった可能性があります |
|---|---|
| 1 | 指定キーの値が正常に設定されました |