Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thank you Mike! I'd been staring at that for a day before I finally caved and asked for help. Much appreciated!