Colors look wrong or washed out when using PDFNet?

Q:

PDFDraw.Export gives subpar results. Whereas other PDF viewers output a vibrant, colorful image, PDFNet’s output looks washed out.

A:

Make sure you’ve enabled color management in PDFNet, by calling the following function after PDFNet.Initialize():

PDFNet.SetColorManagement()

When color management is disabled, PDFNet uses approximate formulas for color conversion which can result in loss of gamut or color accuracy. For even more consistent color conversion results, PDFNet allows you to specify the default ICC profiles for blending color spaces:

PDFNet.SetDefaultDeviceCMYKProfile()

PDFNet.SetDefaultDeviceRGBProfile()