SetFormFieldColorSep

表单字段、颜色

描述

设置指定表单字段中文本的颜色。与 SetFormFieldBorderColor 函数类似,但使用通过 AddSeparationColor 函数添加的分色颜色的色调。PDF 规范不支持表单字段使用分色颜色空间,因此结果未必总能正常工作,尤其是在随后于 Acrobat 中编辑表单字段时。该功能适用于将被扁平化的表单字段

语法

Delphi

Function TPDFlib.SetFormFieldColorSep(Index: Integer; Const ColorName: WideString; Tint: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldColorSep(Index As Long, ColorName As String, Tint As Double) As Long

DLL

int DLSetFormFieldColorSep(int InstanceID, int Index, const wchar_t * ColorName, double Tint);

参数

Index表单字段的索引
ColorName与 [f:AddSeparationColor] 函数一同使用的专色名称
Tint要使用的颜色量。0 表示无颜色(白色),1 表示最大颜色量

返回值

0找不到表单字段,或找不到分离色名称
1已成功设置指定表单字段的文本颜色