PrintColorManagementOptions
PrintColorManagementOptions
Section titled “PrintColorManagementOptions”new PrintColorManagementOptions()
用于文档颜色管理的信息。
PrintColorManagementOptions.colorProfileMode
Section titled “PrintColorManagementOptions.colorProfileMode”printColorManagementOptions.colorProfileMode
颜色管理配置文件模式。
默认值:PrintColorProfile.SOURCEPROFILE
PrintColorManagementOptions.intent
Section titled “PrintColorManagementOptions.intent”printColorManagementOptions.intent
颜色管理意图类型。
默认值:PrintColorIntent.RELATIVECOLORIMETRIC
PrintColorManagementOptions.name
Section titled “PrintColorManagementOptions.name”printColorManagementOptions.name
颜色管理配置文件的名称。
字符串
PrintColorManagementOptions.typename
Section titled “PrintColorManagementOptions.typename”printColorManagementOptions.typename
对象的类名。
字符串;只读。
管理打印颜色
Section titled “管理打印颜色”// 创建一个新文档,添加符号,然后创建一个// PrintColorManagementOptions 对象并将其分配// 给 PrintOptions 对象,然后使用每种颜色意图打印
// 向新文档添加一些符号项var 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";
// 使用每种颜色意图打印当前文档一次。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);