| ImageGear Professional v18.2 > API Reference Guide > PDF Component API Reference > PDF Component Objects > General Objects > IGPDFPage Object > IGPDFPage Methods > MakeColorSeparations Method |
Separates pages' DeviceN colorants into individual layers. The result page is inserted in Doc after the page with index AfterPage.
Sub MakeColorSeparations(ColorChannels As IGPDFAtomArray, Doc As IGPDFDoc, AfterPage As Long)
| Name | Description |
|---|---|
| ColorChannels | Atom array containing the colorant names to separate. Example: "C", "M", "Y", "K", "PANTONE 300 C", etc. |
| Doc | Output PDF document |
| AfterPage | The page number in the output PDF document after which the result page is inserted. |
None
'Create a temp atom Dim temp_atom As IGPDFAtom Set temp_atom = frmMain.IGPDFCtl1.CreateObject(IG_PDF_ATOM) 'Create 2 items array Dim ColorChannels As IGPDFAtomArray Set ColorChannels = frmMain.IGPDFCtl1.CreateObject(IG_PDF_ATOMARRAY) ColorChannels.Resize(2) 'Set K channel temp_atom.String = "K" ColorChannels.Item(0) = temp_atom 'Set C channel temp_atom.String = "C" ColorChannels.Item(1) = temp_atom curPDFPage.MakeColorSeparations ColorChannels, curPDFDoc, curDoc.PageCount - 1