PeachPDF

PeachPDF

ColorConversionMode Enum

How document colors should be converted for output - see ConversionMode. Every non-PreserveAsAuthored mode requires the relevant destination ICC profile property to be set (and parseable) - PdfGenerator validates this at generation time rather than discovering it deep in painting.

public enum ColorConversionMode

Fields

PreserveAsAuthored 0

Every color is written in whichever space it was authored/resolved in - RGB stays RGB, device-cmyk() stays CMYK (PDF’s mixed-color-space document support). No conversion. Default.

ConvertToOutputIntent 1

Convert every color into OutputIntentProfile’s space.

GrayscaleViaK 2

Convert every color into FallbackCmykProfile’s (required) CMYK space and keep only the resulting K (black) channel - true ink-based grayscale, not a luminosity approximation.

ConvertToProfile 3

Convert every color into ConvertToProfile’s space.