N
N
Natterum2017-04-19 19:57:05
Adobe Illustrator
Natterum, 2017-04-19 19:57:05

How to export from Illustrator to JPG with CMYK palette?

file = new File(fileName);
options = new ExportOptionsJPEG ();
options.antiAliasing = true;
options.artBoardClipping = true;
options.verticalScale = resolution;
options.horizontalScale = resolution;
document.exportFile(file, ExportType.JPEG, options);

Here is an example when to export to Illustrator. Tell me, what function should I add to export to CMYK? (without changing the palette in the document settings, namely through the script).
I noticed that even if you change the palette to CMYK in the document settings, then when you run the script, you get a file in the RGB palette.
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question