跳转到内容

ScreenSpotFunction

PPDFileList[index].PPDInfo.screenSpotFunctionList[index]

包含有关颜色分离屏幕点函数的信息,包括其以PostScript语言代码定义的内容。


PPDFileList[index].PPDInfo.screenSpotFunctionList[index].name

颜色分离屏幕点函数的名称。

字符串


PPDFileList[index].PPDInfo.screenSpotFunctionList[index].spotFunction

以PostScript命令表示的点函数。

字符串


PPDFileList[index].PPDInfo.screenSpotFunctionList[index].typename

引用对象的类名。

字符串;只读。


// 在新的文本框中显示第一个PPD文件的屏幕点函数。
var docRef = documents.add();
var sInfo = "";
if (PPDFileList.length == 0) {
sInfo = "\r\t\tPPDFileList为空"
} else {
var ppdRef = PPDFileList[0];
var ppdInfoRef = ppdRef.PPDInfo;
var sInfo = "\r\t\t第一个PPD文件的ScreenSpotFunctions:\r";
sInfo += "\t\t" + ppdRef.name + "\r";
var iScreenSpots = ppdInfoRef.screenSpotFunctionList.length;
if (iScreenSpots > 0) {
for (var n = 0; n < iScreenSpots; n++) {
var screenSpotRef = ppdInfoRef.screenSpotFunctionList[n];
sInfo += "\t\t";
sInfo += screenSpotRef.name;
sInfo += ", spotFunction: ";
sInfo += screenSpotRef.spotFunction;
sInfo += "\r";
}
} else {
sInfo += "\t\tScreenSpotFunctionList为空";
}
}
var textRef = docRef.textFrames.add();
textRef.textRange.characterAttributes.size = 12;
textRef.contents = sInfo;
textRef.top = 600;
textRef.left = 30;
redraw();