跳转到内容

PrintPostScriptOptions

new PrintPostScriptOptions()

用于打印到 PostScript 打印机的选项。


printPostScriptOptions.binaryPrinting

如果为 true,打印应以二进制模式进行。

默认值:false

布尔值


printPostScriptOptions.compatibleShading

如果为 true,使用与 PostScript Level 1 兼容的渐变和渐变网格打印。

默认值:false

布尔值


PrintPostScriptOptions.forceContinuousTone

Section titled “PrintPostScriptOptions.forceContinuousTone”

printPostScriptOptions.forceContinuousTone

如果为 true,强制使用连续色调。

默认值:false

布尔值


printPostScriptOptions.imageCompression

图像压缩类型。

默认值:PostScriptImageCompressionType.IMAGECOMPRESSIONNONE

PostScriptImageCompressionType


printPostScriptOptions.negativePrinting

如果为 true,以负片模式打印。

默认值:false

布尔值


printPostScriptOptions.postScriptLevel

PostScript 语言级别。

默认值:PrinterPostScriptLevelEnum.LEVEL2

PrinterPostScriptLevelEnum


printPostScriptOptions.shadingResolution

渐变分辨率。

范围:1.0 到 9600.0

默认值:300.0

数字(双精度)


printPostScriptOptions.typename

只读。对象的类名。

字符串


// 使用不同的 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);