You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2012/12/16 13:00:13 UTC
[jira] [Assigned] (PDFBOX-1469) [PATCH] PDPageContentStream
incorrectly sets colors in CMYK color space
[ https://issues.apache.org/jira/browse/PDFBOX-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler reassigned PDFBOX-1469:
------------------------------------------
Assignee: Andreas Lehmkühler
> [PATCH] PDPageContentStream incorrectly sets colors in CMYK color space
> -----------------------------------------------------------------------
>
> Key: PDFBOX-1469
> URL: https://issues.apache.org/jira/browse/PDFBOX-1469
> Project: PDFBox
> Issue Type: Bug
> Reporter: Yegor Kozlov
> Assignee: Andreas Lehmkühler
> Attachments: bug-1469.patch
>
>
> I have a program that reads graphic commands from a postscript file and draws a logo on existing PDF pages.
> PDF commands are written using PDPageContentStream which works OK except when I pass colors in CMYK color space - in this case the colors are "off".
> It appears that setStrokingColor(Color color) and setNonStrokingColor(Color color) set the magenta component wrong, they pass yellow instead.
> Here is the problematic line. Notice the second argument, it should be colorComponents[1], not colorComponents[2]
> {code}
> setStrokingColor( colorComponents[0], colorComponents[2], colorComponents[2], colorComponents[3] );
> {code}
> The patch and a unit test are attached.
> Regards,
> Yegor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira