Skip to content

PrinterInfo

printerInfo

Configuration information about a printer.


printerInfo.binaryPrintingSupport

If true, the printer supports binary printing.

Boolean


printerInfo.colorSupport

The printer color capability.

PrinterColorMode


printerInfo.customPaperSupport

If true, the printer supports custom paper size.

Boolean


printerInfo.customPaperTransverseSupport

If true, the printer supports custom paper transverse.

Boolean


printerInfo.deviceResolution

The printer default resolution.

Number (double)


printerInfo.inRIPSeparationSupport

If true, the printer supports InRIP color separation.

Boolean


printerInfo.maxDeviceResolution

The printer maximum device resolution.

Number (double)


printerInfo.maxPaperHeight

Custom paper’s maximum height.

Number (double)


printerInfo.maxPaperHeightOffset

Custom paper’s maximum height offset.

Number (double)


printerInfo.maxPaperWidth

Custom paper’s maximum width.

Number (double)


printerInfo.maxPaperWidthOffset

Custom paper’s maximum width offset.

Number (double)


printerInfo.minPaperHeight

Custom paper’s minimum height.

Number (double)


printerInfo.minPaperHeightOffset

Custom paper’s minimum height offset.

Number (double)


printerInfo.minPaperWidth

Custom paper’s minimum width.

Number (double)


printerInfo.minPaperWidthOffset

Custom paper’s minimum width offset.

Number (double)


printerInfo.paperSizes

The list of supported paper sizes.

Array of Paper


printerInfo.postScriptLevel

The PostScript Language level.

PrinterPostScriptLevelEnum


printerInfo.printerType

The printer type.

PrinterTypeEnum


printerInfo.typename

The class name of the object.

String; read-only.


// Displays a list of available printers in a new text frame
var docRef = documents.add();
var iCount = printerList.length;
var textRef = docRef.textFrames.add();
textRef.contents += "Printers...\r";
for (var i = 0; i < iCount; i++) {
textRef.contents += printerList[i].name;
textRef.contents += "\r\t";
}
textRef.top = 600;
textRef.left = 200;
redraw();