DeviceN Configuration Settings
There are several additional xpdfrc options available with the
XpdfDeviceN and XpdfRasterizer packages.
IMPORTANT: All of these must be set BEFORE loading a PDF file (i.e.,
before calling loadFile, pdfLoadFile, new PDFDoc, etc.).
enableColorManagement yes | no
Enables color management. When enabled, output will be mapped to
the specified output profile (see ***OutputProfile options below).
This option defaults to "no".
grayOutputProfile ICC-profile
Specifies the color profile (.icc file) for gray output. Defaults
to CalGray with D65 white point and gamma = 1.
rgbOutputProfile ICC-profile
Specifies the color profile (.icc file) for RGB output. Setting
the ICC-profile argument to "sRGB" will use a built-in sRGB
profile. Defaults to sRGB.
cmykOutputProfile ICC-profile
Specifies the color profile (.icc file) for CMYK (and DeviceN)
output. By default Xpdf will use the DestOutputProfile specified
in the PDF file, if present. The cmykOutputProfile
setting overrides DestOutputProfile.
Typical usage: If you are generating CMYK/DeviceN output, you will
likely want to set this to your output profile.
defaultGrayInputProfile ICC-profile
Specifies the input profile to be used for the DeviceGray color
space. This will be overridden by a DefaultGray setting in the PDF
file. There is no default value.
defaultRGBInputProfile ICC-profile
Specifies the input profile to be used for the DeviceRGB color
space. This will be overridden by a DefaultRGB setting in the PDF
file. Setting the ICC-profile argument to "sRGB" will use a
built-in sRGB profile. Defaults to sRGB.
Typical usage: If you are generating CMYK/DeviceN output, and your
PDF files use DeviceRGB, you will likely want to set this (either
to sRGB, or to a custom profile specific to your workflow).
defaultCMYKInputProfile ICC-profile
Specifies the input profile to be used for the DeviceCMYK color
space. This will be overridden by a DefaultCMYK setting in the PDF
file. There is no default value.
Typical usage: If you are generating CMYK/DeviceN output, you will
probably want to leave this unset - in which case DeviceCMYK colors
will pass through unchanged to the output color space.
dropExtraDeviceNChannels yes | no
Xpdf supports rasterizing up to 32 channels (CMYK + 28 spot colors)
in DeviceN mode. If a page uses more than 32 channels, Xpdf will
normally convert additional channels to CMYK, via the
Separation/DeviceN tint functions and alternate color spaces. If
dropExtraDeviceNChannels is set to "yes", Xpdf will instead discard
any content in those additional channels. This is useful when
rendering a subset of the channels. Defaults to "no".