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

Tilman Hausherr commented on PDFBOX-2734:
-----------------------------------------

Done. I haven't created a third constructor because the other colorspaces don't 
have it either and I don't see this as a high priority.

What I also haven't done, but would like to get from a user, is a sample 
program. Like what Floris did but with a real type 4 function, e.g. to convert 
from Hexachrome to CMYK. (The example at 
http://partners.adobe.com/public/developer/en/ps/sdk/TN5604.DeviceN_Color.pdf 
didn't work, probably because only a subset of PS is supported)

> Can't create PDF with DeviceN colorspace
> ----------------------------------------
>
>                 Key: PDFBOX-2734
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2734
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.8, 1.8.9, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>              Labels: DeviceN
>             Fix For: 1.8.10, 2.0.0
>
>
> Reported by Floris in the user mailing list. His PDF didn't have the 
> attributes:
> {code}
> 6 0 obj
> <<
> /Cs1 /DeviceGray
> /Cs2 /DeviceN
>  >>
> endobj
> {code}
> Reasons:
> - local array overwrites base array
> - getCOSObject returns name instead of array
> - setAttributes inflates the array too much (likely accidentally introduced 
> in rev 1429524)
> PDF after the fix:
> {code}
> 6 0 obj
> <<
> /Cs1 /DeviceGray
> /Cs2 [/DeviceN [/Cyan /Magenta /Yellow /Black /Orange /Green]
>  /DeviceCMYK 8 0 R 9 0 R]
> >>
> endobj
> {code}
> One of the bugs is also in the trunk, I will test this later.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to