PrinterInfo
PrinterInfo
Section titled “PrinterInfo”printerInfo
打印机的配置信息。
PrinterInfo.binaryPrintingSupport
Section titled “PrinterInfo.binaryPrintingSupport”printerInfo.binaryPrintingSupport
如果为 true
,表示打印机支持二进制打印。
布尔值
PrinterInfo.colorSupport
Section titled “PrinterInfo.colorSupport”printerInfo.colorSupport
打印机的颜色支持能力。
PrinterInfo.customPaperSupport
Section titled “PrinterInfo.customPaperSupport”printerInfo.customPaperSupport
如果为 true
,表示打印机支持自定义纸张尺寸。
布尔值
PrinterInfo.customPaperTransverseSupport
Section titled “PrinterInfo.customPaperTransverseSupport”printerInfo.customPaperTransverseSupport
如果为 true
,表示打印机支持自定义纸张横向打印。
布尔值
PrinterInfo.deviceResolution
Section titled “PrinterInfo.deviceResolution”printerInfo.deviceResolution
打印机的默认分辨率。
数值 (双精度)
PrinterInfo.inRIPSeparationSupport
Section titled “PrinterInfo.inRIPSeparationSupport”printerInfo.inRIPSeparationSupport
如果为 true
,表示打印机支持 InRIP 颜色分离。
布尔值
PrinterInfo.maxDeviceResolution
Section titled “PrinterInfo.maxDeviceResolution”printerInfo.maxDeviceResolution
打印机的最大设备分辨率。
数值 (双精度)
PrinterInfo.maxPaperHeight
Section titled “PrinterInfo.maxPaperHeight”printerInfo.maxPaperHeight
自定义纸张的最大高度。
数值 (双精度)
PrinterInfo.maxPaperHeightOffset
Section titled “PrinterInfo.maxPaperHeightOffset”printerInfo.maxPaperHeightOffset
自定义纸张的最大高度偏移量。
数值 (双精度)
PrinterInfo.maxPaperWidth
Section titled “PrinterInfo.maxPaperWidth”printerInfo.maxPaperWidth
自定义纸张的最大宽度。
数值 (双精度)
PrinterInfo.maxPaperWidthOffset
Section titled “PrinterInfo.maxPaperWidthOffset”printerInfo.maxPaperWidthOffset
自定义纸张的最大宽度偏移量。
数值 (双精度)
PrinterInfo.minPaperHeight
Section titled “PrinterInfo.minPaperHeight”printerInfo.minPaperHeight
自定义纸张的最小高度。
数值 (双精度)
PrinterInfo.minPaperHeightOffset
Section titled “PrinterInfo.minPaperHeightOffset”printerInfo.minPaperHeightOffset
自定义纸张的最小高度偏移量。
数值 (双精度)
PrinterInfo.minPaperWidth
Section titled “PrinterInfo.minPaperWidth”printerInfo.minPaperWidth
自定义纸张的最小宽度。
数值 (双精度)
PrinterInfo.minPaperWidthOffset
Section titled “PrinterInfo.minPaperWidthOffset”printerInfo.minPaperWidthOffset
自定义纸张的最小宽度偏移量。
数值 (双精度)
PrinterInfo.paperSizes
Section titled “PrinterInfo.paperSizes”printerInfo.paperSizes
支持的纸张尺寸列表。
Paper 数组
PrinterInfo.postScriptLevel
Section titled “PrinterInfo.postScriptLevel”printerInfo.postScriptLevel
PostScript 语言级别。
PrinterInfo.printerType
Section titled “PrinterInfo.printerType”printerInfo.printerType
打印机类型。
PrinterInfo.typename
Section titled “PrinterInfo.typename”printerInfo.typename
对象的类名。
字符串;只读。
查找可用的打印机
Section titled “查找可用的打印机”// 在新文本框中显示可用打印机的列表var docRef = documents.add();var iCount = printerList.length;
var textRef = docRef.textFrames.add();textRef.contents += "打印机...\r";
for (var i = 0; i < iCount; i++) { textRef.contents += printerList[i].name; textRef.contents += "\r\t";}
textRef.top = 600;textRef.left = 200;
redraw();