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:
hPage | The page whose content object is acquired. |
pColorChannels | Atom array containing the colorant names to separate. Example: "C", "M", "Y", "K", "PANTONE 300 C", etc. |
nColorChannelsNum | Number of elements in pColorChannels. |
hDoc | Output PDF document. |
nAfterPage | 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; |