StoreCustomDataFromString
文件屬性
說明
本頁介紹 PDFlibPas 中屬於「文件屬性」主題的 StoreCustomDataFromString。API 名稱、參數、類別名稱、檔案名稱和字面值保持原樣,以便和 Delphi 函式庫及 DLL 進入點完全對應。
呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。
使用此 API 時,請注意 PDF/A 限制、所需最低 PDF 版本、外部資源以及目前選定的文件狀態。
語法
Delphi
Function TPDFlib.StoreCustomDataFromString(Const Key, NewValue: AnsiString; Location, Options: Integer): Integer;
DLL
int DLStoreCustomDataFromString(int InstanceID, const char * Key, const char * NewValue, int Location, int Options);
參數
| Key | Key 是 StoreCustomDataFromString 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。 |
|---|---|
| NewValue | NewValue 是 StoreCustomDataFromString 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。 |
| Location | Location 是 StoreCustomDataFromString 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。 |
| Options | Options 是用於調整呼叫行為的位元遮罩或數值選項。 |
傳回值
| 0 | 此值說明 StoreCustomDataFromString 的呼叫結果。通常非零值表示成功,0 表示操作未完成。 |
|---|---|
| 1 | 此值說明 StoreCustomDataFromString 的呼叫結果。通常非零值表示成功,0 表示操作未完成。 |