pdfSetCMYKOutputProfile

Set the CMYK output profile for one document.
void pdfSetCMYKOutputProfile(PDFHandle pdf, char *profilePath)
Sets the CMYK output profile (for color management) for a single PDF file. This overrides the global xpdfrc setting.

Color management must be enabled (either via the global xpdfrc setting, or using pdfEnableColorManagement) before calling this function.

C:
pdfSetCMYKOutputProfile(pdf, "c:/profiles/some-profile.icc");
pdfEnableColorManagement
pdfSetGrayOutputProfile
pdfSetRGBOutputProfile