SetTextColorCMYK

Text, Color

Description

Sets the color for any subsequently drawn text until the next NewPage or SelectPage call. Similar to the SetTextColor function, but the color components are specified in the CMYK color space (Cyan, Magenta, Yellow, Black). The values of the color parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the color.

Syntax

Delphi

Function TPDFlib.SetTextColorCMYK(C, M, Y, K: Double): Integer;

ActiveX

Function PDFlib::SetTextColorCMYK(C As Double, M As Double, Y As Double, K As Double) As Long

DLL

int DLSetTextColorCMYK(int InstanceID, double C, double M, double Y, double K);

Parameters

CThe cyan component of the color
MThe magenta component of the color
YThe yellow component of the color
KThe black component of the color

Return values

1The text colour was set
0A PDF/A mode is active with an output intent colour space other than DeviceCMYK; LastErrorCode is set to 601