You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/01/20 00:18:19 UTC

[jira] [Commented] (PDFBOX-1851) [PATCH] Improved CMYK color space conversion

    [ https://issues.apache.org/jira/browse/PDFBOX-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13876045#comment-13876045 ] 

Tilman Hausherr commented on PDFBOX-1851:
-----------------------------------------

The colors are better (some files no have the "80ies neon style"), but the rendering is sometimes much slower. Example: the file bugzilla886049.pdf to be found on PDFBOX-1760. However the colors are still bad for some files, e.g. http://www.fujixeroxprinters.com.au/downloads/uploaded/DocuPrint%20Mono%20205%20Series_8c68.pdf (mentioned in PDFBOX-1058)

> [PATCH] Improved CMYK color space conversion
> --------------------------------------------
>
>                 Key: PDFBOX-1851
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1851
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: Andreas Lehmkühler
>              Labels: color, patch
>             Fix For: 2.0.0
>
>         Attachments: ISOcoated_v2_300_bas.icc, PDDeviceCMYK.properties, cmyk.patch
>
>
> This is a patch to resolve a long-standing issue with CMYK color spaces. DeviceCMYK is a device-dependent color space and so should always be associated with an ICC color profile. In Acrobat the default profile is "U.S. Web Coated (SWOP) v2", which unfortunately is only available from Adobe under a non-free license.
> I've modified PDDeviceCMYK to use an ICC color profile rather than a hardcoded transform, this allows the user to use their own profile. I've included "ISO Coated v2 300% (basICColor)" as the default profile, which is from OpenICC http://www.freedesktop.org/wiki/OpenIcc/ProfilePackages/ redistributed under the zlib license. This color space is an open alternative to a version produced by ECI which is highly recommended as a generic CMYK profile.
> Note: Using ICC profiles is a huge improvement on the matrix-based transform used by Xpdf, Poppler, MuPDF, etc.
> This patch requires the following file to be deleted:
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/ColorSpaceCMYK.java



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)