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