5
Print Production
Print Production
Setting Advanced Print Options
You can set the
printParams
object’s properties to specify advanced options including
output, marks and bleeds, transparency flattening, PostScript options, and font options.
Specifying Output Settings
You may obtain a listing of printer color spaces available by invoking the
app
object’s
printColorProfiles
method. You may then assign one of these values to the
printParams
object’s
colorProfile
property.
In addition, you may set the
printParams
object’s
flags
property to specify advanced
Output settings, such as applying proof settings, shown in the example below:
var pp = this.getPrintParams();
var fv = pp.constants.flagValues;
pp.flags |= fv.applySoftProofSettings;
this.print(pp);
Specifying Marks and Bleeds
You can specify the types of tile marks and where overlap occurs by setting the
printParams
object’s
tileMark
property. For example, in the following code, Western
style tile marks are printed:
var pp = this.getPrintParams();
pp.tileMark = pp.constants.tileMarks.west;
this.print(pp);
Setting PostScript Options
You may set the
printParams
object’s
flags
property to specify advanced PostScript
settings, such as emitting undercolor removal/black generation, shown in the example
below:
var pp = this.getPrintParams();
var fv = pp.constants.flagValues;
pp.flags &= ~(fv.suppressBG | fv.suppressUCR);
this.print(pp);
In addition, you may set the
printParams
object’s
psLevel
property to specify the
level of PostScript emitted to PostScript printers. In addition, if the printer only supports
PostScript level 1, set the
printParams
object’s
printAsImage
property to
true
.
82
Acrobat JavaScript Scripting Guide