Skip to content
  • Adrian Johnson's avatar
    Use ICC profiles in PS output · 1f698b44
    Adrian Johnson authored
    When printing PDFs that use ICC based colors, Poppler always uses the alternate color space
    in the PostScript output (usually DeviceRGB or DeviceCMYK). The attached patch will use the
    ICC profile color space in the PS output. Most of the patch is modifying GfxColorTransform
    and callers to store the source profile as well as the transform. The GfxICCBasedColorSpace
    class has a new method, getPostScriptCSA(), which uses the LCMS function cmsGetPostScriptCSA()
    to generate the CIEBased color space dictionary equivalent to the ICC profile.
    
    Based on patch from issue #125.
    1f698b44