InkInfo
InkInfo
Section titled “InkInfo”app.activeDocument.inkList[index].inkInfo
用于打印文档的油墨信息。
InkInfo.angle
Section titled “InkInfo.angle”app.activeDocument.inkList[index].inkInfo.angle
油墨的屏幕角度(以度为单位)。
范围:-360 到 360。
数字(双精度)。
InkInfo.customColor
Section titled “InkInfo.customColor”app.activeDocument.inkList[index].inkInfo.customColor
自定义油墨的颜色。
InkInfo.density
Section titled “InkInfo.density”app.activeDocument.inkList[index].inkInfo.density
中性密度。最小值:0.0。
数字(双精度)。
InkInfo.dotShape
Section titled “InkInfo.dotShape”app.activeDocument.inkList[index].inkInfo.dotShape
网点形状的名称。
字符串。
InkInfo.frequency
Section titled “InkInfo.frequency”app.activeDocument.inkList[index].inkInfo.frequency
油墨的频率。
范围:0.0 到 1000.0。
数字(双精度)。
InkInfo.kind
Section titled “InkInfo.kind”app.activeDocument.inkList[index].inkInfo.kind
油墨类型。
InkInfo.printingStatus
Section titled “InkInfo.printingStatus”app.activeDocument.inkList[index].inkInfo.printingStatus
油墨的打印状态。
InkInfo.trapping
Section titled “InkInfo.trapping”app.activeDocument.inkList[index].inkInfo.trapping
陷印类型。
InkInfo.trappingOrder
Section titled “InkInfo.trappingOrder”app.activeDocument.inkList[index].inkInfo.trappingOrder
油墨的陷印顺序。
对于 CMYK,范围为 1 到 4。
数字(长整型)。
InkInfo.typename
Section titled “InkInfo.typename”app.activeDocument.inkList[index].inkInfo.typename
对象的类名。
字符串;只读。
获取油墨信息
Section titled “获取油墨信息”// 在文本框中显示当前文档的油墨信息
var docRef = documents.add();
// 组装一个包含此文档油墨信息的字符串var sInks = "";var iLength = activeDocument.inkList.length;for (var i = 0; i < iLength; i++) { sInks += docRef.inkList[i].name; sInks += "\r\t"; sInks += "频率 = " + docRef.inkList[i].inkInfo.frequency; sInks += "\r\t"; sInks += "密度 = " + docRef.inkList[i].inkInfo.density; sInks += "\r";}
var textRef = docRef.textFrames.add();textRef.contents = sInks;textRef.top = 600;textRef.left = 200;
redraw();