SetCatalogInformationA
文書プロパティ
説明
末尾の A は ANSI(char)DLL エントリポイントを示します。ActiveX/COM インターフェースでは Unicode 形式のみを公開します。動作は SetCatalogInformation と同じで、文字列引数は現在の SetAnsiMode コードページを使用して解釈されます
この関数を使用すると、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 DLSetCatalogInformationA(InstanceID: Integer; Key, NewValue: PAnsiChar): Integer;
DLL
int DLSetCatalogInformationA(int InstanceID, const char * Key, const char * NewValue);
パラメータ
| Key | 設定するキーの名前です。他のソフトウェアとの競合を避けるため、このキーには Adobe から割り当てられた特別な接頭辞が必要です |
|---|---|
| NewValue | 指定したキーの新しい値 |
戻り値
| 0 | 指定したキーを設定できませんでした。システムキーだった可能性があります |
|---|---|
| 1 | 指定キーの値が正常に設定されました |