LoadOutputIntentProfile

文件屬性與遵循性

描述

把所選文件 OutputIntent 使用的隨附 sRGB ICC 設定檔,換成外部設定檔

先呼叫 SetPDFAMode 建立 OutputIntent 骨架;當封存設定檔必須是 CMYK、灰階或自訂 RGB 設定檔,而不是內建 sRGB 串流時,再呼叫此函式

語法

Delphi

Function TPDFlib.LoadOutputIntentProfile(Const FileName: WideString; Const ColorSpace: AnsiString): Integer;

ActiveX

Function PDFlib::LoadOutputIntentProfile(FileName As String, ColorSpace As String) As Long

型別程式庫 3.6 版起可在 IPDFlibrary5 上使用

DLL

int DLLoadOutputIntentProfile(int InstanceID, const wchar_t* FileName, const char* ColorSpace);
int DLLoadOutputIntentProfileA(int InstanceID, const char* FileName, const char* ColorSpace);

參數

FileNameICC 設定檔檔案的路徑
ColorSpace要宣告的輸出設定檔裝置類別,例如 DeviceRGB、DeviceCMYK 或 DeviceGray

傳回值

設定檔載入既有 OutputIntent 時傳回 1;檔案無法讀取、色彩空間不被接受,或文件尚無 OutputIntent 時傳回 0

備註

設定檔標頭必須描述所要求的色彩空間(DeviceCMYK 對 CMYK、DeviceRGB 對 RGB、DeviceGray 對 GRAY);不符的設定檔會被拒絕且方法傳回 0。PDF/X 預檢對內嵌設定檔與其 /N 項目施以相同檢查

另請參閱

SetPDFAMode