AddSeparationColor

Vector graphics, Color

Description

Adds a separation color to the document.

A separation color has a name and an equivalent color in the CMYK color space. If the document is viewed the CMYK color will be used. If the document is printed to an image setter a separation with the specified name will be generated.

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.AddSeparationColor(Const ColorName: WideString; C, M, Y, K: Double; Options: Integer): Integer;

ActiveX

Function PDFlib::AddSeparationColor(ColorName As String, C As Double, M As Double, Y As Double, K As Double, Options As Long) As Long

DLL

int DLAddSeparationColor(int InstanceID, wchar_t * ColorName, double C, double M, double Y, double K, int Options);

Parameters

ColorNameThe name of the separation color, for example "PANTONE 403 EC". This can be any name you want, but is usually set to the name of a specific spot color that your printing press will know what to do with. The cyan component of the color equivalent to the spot color
C
MThe magenta component of the color equivalent to the spot color
YThe yellow component of the color equivalent to the spot color
KThe black component of the color equivalent to the spot color
OptionsThis parameter is ignored and should be set to 0

Return values

0The separation color could not be added. The color name may already have been used.
1The separation color was added successfully