PrintPostScriptOptions
PrintPostScriptOptions
Section titled “PrintPostScriptOptions”new PrintPostScriptOptions()
用于打印到 PostScript 打印机的选项。
PrintPostScriptOptions.binaryPrinting
Section titled “PrintPostScriptOptions.binaryPrinting”printPostScriptOptions.binaryPrinting
如果为 true
,打印应以二进制模式进行。
默认值:false
布尔值
PrintPostScriptOptions.compatibleShading
Section titled “PrintPostScriptOptions.compatibleShading”printPostScriptOptions.compatibleShading
如果为 true
,使用与 PostScript Level 1 兼容的渐变和渐变网格打印。
默认值:false
布尔值
PrintPostScriptOptions.forceContinuousTone
Section titled “PrintPostScriptOptions.forceContinuousTone”printPostScriptOptions.forceContinuousTone
如果为 true
,强制使用连续色调。
默认值:false
布尔值
PrintPostScriptOptions.imageCompression
Section titled “PrintPostScriptOptions.imageCompression”printPostScriptOptions.imageCompression
图像压缩类型。
默认值:PostScriptImageCompressionType.IMAGECOMPRESSIONNONE
PostScriptImageCompressionType
PrintPostScriptOptions.negativePrinting
Section titled “PrintPostScriptOptions.negativePrinting”printPostScriptOptions.negativePrinting
如果为 true
,以负片模式打印。
默认值:false
布尔值
PrintPostScriptOptions.postScriptLevel
Section titled “PrintPostScriptOptions.postScriptLevel”printPostScriptOptions.postScriptLevel
PostScript 语言级别。
默认值:PrinterPostScriptLevelEnum.LEVEL2
PrintPostScriptOptions.shadingResolution
Section titled “PrintPostScriptOptions.shadingResolution”printPostScriptOptions.shadingResolution
渐变分辨率。
范围:1.0 到 9600.0
默认值:300.0
数字(双精度)
PrintPostScriptOptions.typename
Section titled “PrintPostScriptOptions.typename”printPostScriptOptions.typename
只读。对象的类名。
字符串
设置 PostScript 打印选项
Section titled “设置 PostScript 打印选项”// 使用不同的 PostScript 级别打印当前文档// 创建新的 PostScript 选项对象,分配给打印选项var psOpts = new PrintPostScriptOptions();
var printOpts = new PrintOptions();printOpts.postScriptOptions = psOpts;
// 分配 PS 级别并打印psOpts.postScriptLevel = PrinterPostScriptLevelEnum.PSLEVEL2;activeDocument.print(printOpts);
psOpts.postScriptLevel = PrinterPostScriptLevelEnum.PSLEVEL3;activeDocument.print(printOpts);