[
https://issues.apache.org/jira/browse/PDFBOX-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201241#comment-17201241
]
Tilman Hausherr commented on PDFBOX-4962:
-----------------------------------------
The relevant code in PDFBox is
{code}
else if (!(colorSpace instanceof PDPattern))
{
float[] rgb = colorSpace.toRGB(color.getComponents());
return new Color(clampColor(rgb[0]), clampColor(rgb[1]),
clampColor(rgb[2]));
}
{code}
So what would we have to change so that it would still work if Graphics2D does
not support CMYK, and how would one know that the Graphics2D does support CMYK?
> CMYK support
> ------------
>
> Key: PDFBOX-4962
> URL: https://issues.apache.org/jira/browse/PDFBOX-4962
> Project: PDFBox
> Issue Type: Bug
> Reporter: Simon Steiner
> Priority: Major
>
> If the content stream has a cmyk color:
> 0 0 0 1 k
> pdfbox will convert this to rgb causing loss of fidelity
> is it possible to pass the cmyk color when you call graphics2d eg:
> {color:#660e7a}graphics{color}.setPaint(cmyk value)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]