[
https://issues.apache.org/jira/browse/PDFBOX-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200985#comment-17200985
]
Tilman Hausherr commented on PDFBOX-4962:
-----------------------------------------
How would this work? This would have to be a new kind of Graphics2D device, or
one would have to convert anyway.
Some problems may be because we're not using the "gold standard" cmyk profile.
You could do this:
{code}
//
https://www.adobe.com/support/downloads/iccprofiles/iccprofiles_win.html
PDDeviceCMYK.INSTANCE = new PDDeviceCMYK()
{
@Override
protected ICC_Profile getICCProfile() throws IOException
{
return ICC_Profile.getInstance("USWebCoatedSWOP.icc");
}
};
{code}
> 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]