SetCatalogInformationA

文件屬性

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetCatalogInformation 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

此函式可在 PDF 文件中儲存自訂資訊。類似 SetCustomInformation 函式,但資訊存放在 Document Catalog 而不是 Document Information Dictionary。中繼資料應用 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指定鍵的值設定成功