[
https://issues.apache.org/jira/browse/PDFBOX-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler resolved PDFBOX-1469.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
I applied the patch in revision 1422562 as proposed by Yegor Kozlov.
Thanks for the contribution!
> [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
> Fix For: 1.8.0
>
> 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