PrinterInfo
PrinterInfo
Section titled “PrinterInfo”printerInfo
Description
Section titled “Description”Configuration information about a printer.
Properties
Section titled “Properties”PrinterInfo.binaryPrintingSupport
Section titled “PrinterInfo.binaryPrintingSupport”printerInfo.binaryPrintingSupport
Description
Section titled “Description”If true
, the printer supports binary printing.
Boolean
PrinterInfo.colorSupport
Section titled “PrinterInfo.colorSupport”printerInfo.colorSupport
Description
Section titled “Description”The printer color capability.
PrinterInfo.customPaperSupport
Section titled “PrinterInfo.customPaperSupport”printerInfo.customPaperSupport
Description
Section titled “Description”If true
, the printer supports custom paper size.
Boolean
PrinterInfo.customPaperTransverseSupport
Section titled “PrinterInfo.customPaperTransverseSupport”printerInfo.customPaperTransverseSupport
Description
Section titled “Description”If true
, the printer supports custom paper transverse.
Boolean
PrinterInfo.deviceResolution
Section titled “PrinterInfo.deviceResolution”printerInfo.deviceResolution
Description
Section titled “Description”The printer default resolution.
Number (double)
PrinterInfo.inRIPSeparationSupport
Section titled “PrinterInfo.inRIPSeparationSupport”printerInfo.inRIPSeparationSupport
Description
Section titled “Description”If true
, the printer supports InRIP color separation.
Boolean
PrinterInfo.maxDeviceResolution
Section titled “PrinterInfo.maxDeviceResolution”printerInfo.maxDeviceResolution
Description
Section titled “Description”The printer maximum device resolution.
Number (double)
PrinterInfo.maxPaperHeight
Section titled “PrinterInfo.maxPaperHeight”printerInfo.maxPaperHeight
Description
Section titled “Description”Custom paper’s maximum height.
Number (double)
PrinterInfo.maxPaperHeightOffset
Section titled “PrinterInfo.maxPaperHeightOffset”printerInfo.maxPaperHeightOffset
Description
Section titled “Description”Custom paper’s maximum height offset.
Number (double)
PrinterInfo.maxPaperWidth
Section titled “PrinterInfo.maxPaperWidth”printerInfo.maxPaperWidth
Description
Section titled “Description”Custom paper’s maximum width.
Number (double)
PrinterInfo.maxPaperWidthOffset
Section titled “PrinterInfo.maxPaperWidthOffset”printerInfo.maxPaperWidthOffset
Description
Section titled “Description”Custom paper’s maximum width offset.
Number (double)
PrinterInfo.minPaperHeight
Section titled “PrinterInfo.minPaperHeight”printerInfo.minPaperHeight
Description
Section titled “Description”Custom paper’s minimum height.
Number (double)
PrinterInfo.minPaperHeightOffset
Section titled “PrinterInfo.minPaperHeightOffset”printerInfo.minPaperHeightOffset
Description
Section titled “Description”Custom paper’s minimum height offset.
Number (double)
PrinterInfo.minPaperWidth
Section titled “PrinterInfo.minPaperWidth”printerInfo.minPaperWidth
Description
Section titled “Description”Custom paper’s minimum width.
Number (double)
PrinterInfo.minPaperWidthOffset
Section titled “PrinterInfo.minPaperWidthOffset”printerInfo.minPaperWidthOffset
Description
Section titled “Description”Custom paper’s minimum width offset.
Number (double)
PrinterInfo.paperSizes
Section titled “PrinterInfo.paperSizes”printerInfo.paperSizes
Description
Section titled “Description”The list of supported paper sizes.
Array of Paper
PrinterInfo.postScriptLevel
Section titled “PrinterInfo.postScriptLevel”printerInfo.postScriptLevel
Description
Section titled “Description”The PostScript Language level.
PrinterInfo.printerType
Section titled “PrinterInfo.printerType”printerInfo.printerType
Description
Section titled “Description”The printer type.
PrinterInfo.typename
Section titled “PrinterInfo.typename”printerInfo.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Finding available printers
Section titled “Finding available printers”// Displays a list of available printers in a new text framevar 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();