PrintColorManagementOptions
PrintColorManagementOptions
Section titled “PrintColorManagementOptions”new PrintColorManagementOptions()
Description
Section titled “Description”Information used for color management of the document.
Properties
Section titled “Properties”PrintColorManagementOptions.colorProfileMode
Section titled “PrintColorManagementOptions.colorProfileMode”printColorManagementOptions.colorProfileMode
Description
Section titled “Description”The color management profile mode.
Default: PrintColorProfile.SOURCEPROFILE
PrintColorManagementOptions.intent
Section titled “PrintColorManagementOptions.intent”printColorManagementOptions.intent
Description
Section titled “Description”The color management intent type.
Default: PrintColorIntent.RELATIVECOLORIMETRIC
PrintColorManagementOptions.name
Section titled “PrintColorManagementOptions.name”printColorManagementOptions.name
Description
Section titled “Description”The color management profile name.
String
PrintColorManagementOptions.typename
Section titled “PrintColorManagementOptions.typename”printColorManagementOptions.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Managing colors for printing
Section titled “Managing colors for printing”// Creates a new document, adds symbols, then creates a// PrintColorManagementOptions object and assigns it// to a PrintOptions object, then prints with each color intent
// Add some symbol items to a new documentvar docRef = documents.add();var y = docRef.height - 30;
for (var i = 0; i < (docRef.symbols.length); i++) { symbolRef = docRef.symbols[i];
symbolItemRef1 = docRef.symbolItems.add(symbolRef); symbolItemRef1.top = y; symbolItemRef1.left = 100;
y -= (symbolItemRef1.height + 10);}
redraw();
var colorOptions = new PrintColorManagementOptions();var options = new PrintOptions();options.colorManagementOptions = colorOptions;colorOptions.name = "ColorMatch RGB";
// Print the current document once for each color intent.colorOptions.intent = PrintColorIntent.ABSOLUTECOLORIMETRIC;docRef.print(options);
colorOptions.intent = PrintColorIntent.PERCEPTUALINTENT;docRef.print(options);
colorOptions.intent = PrintColorIntent.RELATIVECOLORIMETRIC;docRef.print(options);
colorOptions.intent = PrintColorIntent.SATURATIONINTENT;docRef.print(options);