ImageGear for C and C++ on Linux v19.10 - Updated
IG_PDF_page_make_color_separations
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_PAGE > IG_PDF_page_make_color_separations

Separates hPage's DeviceN colorants into individual layers; the resulting page is inserted in hDoc after the page with index nAfterPage.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_page_make_color_separations(
        HIG_PDF_PAGE hPage,
        LPHIG_PDF_ATOM pColorChannels,
        UINT nColorChannelsNum,
        HIG_PDF_DOC hDoc,
        LONG nAfterPage
);

Arguments:

Name Type Description
hPage HIG_PDF_PAGE The page whose content object is acquired.
pColorChannels LPHIG_PDF_ATOM Atom array containing the colorant names to separate. Example: "C", "M", "Y", "K", "PANTONE 300 C", etc.
nColorChannelsNum UINT Number of elements in pColorChannels.
hDoc HIG_PDF_DOC Output PDF document.
nAfterPage LONG The page number in the output PDF document after which the result page is inserted.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
HIG_PDF_ATOM* pColorChannels = new HIG_PDF_ATOM[2];
IG_PDF_atom_from_string("Y", &pColorChannels[0]);
IG_PDF_atom_from_string("PANTONE 300 C", &pColorChannels[1]);
nErrCount += IG_PDF_page_make_color_separations(GetCurPDFPage(), pColorChannels, 2,
GetPDFDoc(), nPageCount-2);
delete pColorChannels;