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

Emmeran Seehuber edited comment on PDFBOX-4962 at 9/27/20, 7:00 PM:
--------------------------------------------------------------------

I didn't see that there was a patch attached. I would suggest a different 
solution here. See the attached [^pdfcolor.patch].

=> The target Graphics2D needs some way to get the original colors. I would 
suggest a small java.awt.Color derived class, which just carries this PDColor 
information. So if the Graphics2D wants that it can use that. Otherwise nothing 
changes. 

Currently I always have to override getPaint() in PageDrawer to get this 
information. With this patch that would not be needed any more.


was (Author: rototor):
I didn't see that there was a patch attached. I would suggest a different 
solution here. See the attached [^pdfcolor.patch].

=> The target Graphics2D needs some way to get the original colors. I would 
suggest a small java.awt.Color derived class, which just carries this PDColor 
information. So if the Graphics2D whats that it can use that. Otherwise nothing 
changes. 

Currently I always have to override getPaint() in PageDrawer to get this 
information. With this patch that would not be needed any more.

> CMYK support
> ------------
>
>                 Key: PDFBOX-4962
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4962
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Simon Steiner
>            Priority: Major
>         Attachments: pdfbox2cmyk.patch, pdfcolor.patch
>
>
> 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]

Reply via email to