Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

colorants order when using DeviceN colorspace

$
0
0

Hello everybody,

 

I have an issue when I'm creating PDF with DeviceN colorspace using PDFLibrary.

I define a DeviceN CMYKOG colorspace using Cos objects. I also define each extra colorants in separation colorspace and use those colorants definition in my DeviceN colorspace like this :

 

Device N dict with attribute :

8 0 obj

[/DeviceN[/Cyan/Magenta/Yellow/Black/Orange/Green]/DeviceCMYK 18 0 R 24 0 R]

endobj

 

Attribute dict :

 

24 0 obj

<</Colorants 23 0 R>>

endobj

23 0 obj

<</Green 20 0 R/Orange 22 0 R>>

endobj

 

Then when I use PDFL to list all the colorants, it gives me

Green

Orange

 

When I remove the attribute entry and define my colorspace like this:

Device N dict without attribute :

8 0 obj

[/DeviceN[/Cyan/Magenta/Yellow/Black/Orange/Green]/DeviceCMYK 18 0 R]

endobj

 

when I list the colorants using PDFL it gives me

Orange

Green

 

Like you can see, it is not the same order. And this last order is the one I want to have, and it's important for me to have them in this order.

 

Have you an idea why using colorants definition reverse this order?

I tried using more colorants, and when I use attributes entry for the DeviceN, colorants are always listed in alphabetic order.

I would like to have this separation entry for color convertion in PDF previsualisation, but listed with the order used for DeviceN definition


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>