SetFormFieldBorderColorSep
表单字段、颜色
描述
设置指定表单字段的边框颜色。与 SetFormFieldBorderColor 函数类似,但使用通过 AddSeparationColor 函数添加的专色的色调。PDF 规范不支持表单字段使用专色空间,因此结果未必始终有效,尤其是随后在 Acrobat 中编辑该表单字段时。此功能适用于将被扁平化的表单字段
语法
Delphi
Function TPDFlib.SetFormFieldBorderColorSep(Index: Integer; Const ColorName: WideString; Tint: Double): Integer;
ActiveX
Function PDFlib::SetFormFieldBorderColorSep(Index As Long, ColorName As String, Tint As Double) As Long
DLL
int DLSetFormFieldBorderColorSep(int InstanceID, int Index, const wchar_t * ColorName, double Tint);
参数
| Index | 表单字段的索引 |
|---|---|
| ColorName | 通过 AddSeparationColor 函数使用的分色颜色名称 |
| Tint | 要使用的颜色量。0 表示无颜色(白色),1 表示最大颜色量 |
返回值
| 0 | 找不到表单字段,或找不到分离色名称 |
|---|---|
| 1 | 指定表单字段的边框颜色已成功设置 |