Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How to initiate print dialog, like pressing Ctrl+P

$
0
0
I need to initiate print dialog. Action must be completely the same like pressing Cntr+P on keyboard.

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."

Viewing all articles
Browse latest Browse all 12845

Trending Articles



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