SetPageOutputIntent

合規性、色彩管理

描述

為單一頁面建立或取代明確的 PDF 2.0 輸出意圖

語法

Delphi

Function SetPageOutputIntent(PageNumber: Integer; Const Subtype, ColorSpace, OutputConditionIdentifier, OutputCondition, Info, RegistryName, ProfileFileName: WideString): Integer;

參數

PageNumber以 1 為起始的頁碼
Subtype必要的輸出意圖子類型,例如 GTS_PDFX
ColorSpaceDeviceGray、DeviceRGB 或 DeviceCMYK
OutputConditionIdentifier必要的生產條件識別碼
OutputCondition選用的人類可讀條件說明
Info選用的補充描述
RegistryName選用的登錄 URI
ProfileFileNameICC 設定檔檔案;空字串表示搭配 DeviceRGB 使用隨附的 sRGB 設定檔

傳回值

成功時為 1;頁面無效、子類型無效、色彩空間無效、缺少識別碼、設定檔無法讀取,或非 RGB 請求未附 ICC 檔案時為 0

備註

此呼叫需要 PDF 2.0,並把 /OutputIntents 直接寫在頁面字典上

對該頁而言,明確的頁面層級意圖優先於文件 Catalog 意圖;頁面樹節點不會透過一般頁面屬性繼承提供此值

另請參閱

SetOutputIntentProfileReference, ClearPageOutputIntents, GetEffectivePageOutputIntentJSON, SetPDFXMode