I need to initiate print dialog. Action must be completely the same like pressing Cntr+P on keyboard.
When I use this code:
I get error message: "Can't print the illustration. The Color Management setting are inconsistent."
When I use this code:
var colorOptions = new PrintColorManagementOptions();
colorOptions.name = "ColorMatch RGB";
colorOptions.intent = PrintColorIntent.ABSOLUTECOLORIMETRIC;
colorOptions.colorProfileMode = PrintColorProfile.SOURCEPROFILE;
var printOpts = new PrintOptions();
printOpts.ClipComplexRegions = true;
printOpts.GradientResoultion = 360;
printOpts.RasterizatonResotion = 360;
printOpts.colorManagementOptions = colorOptions;
activedocument.print(printOpts);
I get error message: "Can't print the illustration. The Color Management setting are inconsistent."