Skip to main content
DESILarry
Participant
May 18, 2023
Answered

Illustrator ExtendScript Printing Problem - The Color Management settings are inconsistent

  • May 18, 2023
  • 1 reply
  • 751 views

I've searched, but cannot find anything applicable and I'm hoping someone here might know the answer. I have the following simple script to print a document to an office laser printer. When I run the script I get: "Can't print the illustration. The Color Management settings are inconsistent."

var doc = activeDocument;

printOptions = new PrintOptions();
printOptions.Preset = "dsl-paperwork_print_preset";
printOptions.printerName = "office-mfc";
doc.print(printOptions);

When I print directly from Illustrator using the same printer preset, the document prints perfectly. Any help or suggestions are greatly appreciated.

Thank you,

Larry 

This topic has been closed for replies.
Correct answer Mike Bro

@DESILarry,

 

Looking at the scripting documentation you need to change this line...

 

printOptions.Preset = "dsl-paperwork_print_preset";

 

To this...

 

printOptions.printPreset = "dsl-paperwork_print_preset";

 

 

https://www.indesignjs.de/extendscriptAPI/illustrator-latest/#PrintOptions.html

 

Regards,

Mike

1 reply

Mike BroCorrect answer
Legend
May 19, 2023

@DESILarry,

 

Looking at the scripting documentation you need to change this line...

 

printOptions.Preset = "dsl-paperwork_print_preset";

 

To this...

 

printOptions.printPreset = "dsl-paperwork_print_preset";

 

 

https://www.indesignjs.de/extendscriptAPI/illustrator-latest/#PrintOptions.html

 

Regards,

Mike

DESILarry
DESILarryAuthor
Participant
May 19, 2023

Thank you Mike! I'd been staring at that for a day before I finally caved and asked for help. Much appreciated!