AddSeparationColor

Vector graphics, Colour

Description

Adds a separation colour to the document.

A separation colour has a name and an equivalent colour in the CMYK colour space. If the document is viewed the CMYK colour 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 colour parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the colour.

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

Return values

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