Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Exporting correct Hex colors via scripting

$
0
0

Hello all,

 

I need to export the fillColor of a paragraph style via scripting.

 

I can get the fillColor property of the paragraph style, and can also convert CMYK to Hex. However, I do realize that the color values shown in InDesign are in whatever Color Space the document is using.

 

My question is, is there a native API to convert the color values to a web safe color value? If not, how do I go about mapping the colors?

 

Additionally, I see that Adobe internally knows how to convert it to a proper hex color (screenshot attached - note the color property in the Export Tagging pane). If I cannot use some native API, is there a way to access the text in that pane?

 

Screen Shot 2014-12-15 at 7.25.20 PM.png

 

Thanks all, in advance!


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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