PrintOptions
PrintOptions
Section titled “PrintOptions”new PrintOptions()
Description
Section titled “Description”Contains information about all printing options including flattening, color management, coordinates, fonts, and paper.
Properties
Section titled “Properties”PrintOptions.colorManagementOptions
Section titled “PrintOptions.colorManagementOptions”printOptions.colorManagementOptions
Description
Section titled “Description”The printing color management options.
PrintOptions.colorSeparationOptions
Section titled “PrintOptions.colorSeparationOptions”printOptions.colorSeparationOptions
Description
Section titled “Description”The printing color separation options.
PrintOptions.coordinateOptions
Section titled “PrintOptions.coordinateOptions”printOptions.coordinateOptions
Description
Section titled “Description”The printing coordinate options.
PrintOptions.flattenerOptions
Section titled “PrintOptions.flattenerOptions”printOptions.flattenerOptions
Description
Section titled “Description”The printing flattener options.
PrintOptions.flattenerPreset
Section titled “PrintOptions.flattenerPreset”printOptions.flattenerPreset
Description
Section titled “Description”The transparency flattener preset name.
String
PrintOptions.fontOptions
Section titled “PrintOptions.fontOptions”printOptions.fontOptions
Description
Section titled “Description”The printing font options.
PrintOptions.jobOptions
Section titled “PrintOptions.jobOptions”printOptions.jobOptions
Description
Section titled “Description”The printing job options.
PrintOptions.pageMarksOptions
Section titled “PrintOptions.pageMarksOptions”printOptions.pageMarksOptions
Description
Section titled “Description”The printing page marks options.
PrintOptions.paperOptions
Section titled “PrintOptions.paperOptions”printOptions.paperOptions
Description
Section titled “Description”The paper options.
PrintOptions.postScriptOptions
Section titled “PrintOptions.postScriptOptions”printOptions.postScriptOptions
Description
Section titled “Description”The printing PostScript options.
PrintOptions.PPDName
Section titled “PrintOptions.PPDName”printOptions.PPDName
Description
Section titled “Description”The PPD name.
String
PrintOptions.printerName
Section titled “PrintOptions.printerName”printOptions.printerName
Description
Section titled “Description”The printer name.
String
PrintOptions.printPreset
Section titled “PrintOptions.printPreset”printOptions.printPreset
Description
Section titled “Description”The print style.
String
Example
Section titled “Example”Setting print options
Section titled “Setting print options”// Creates a new document, adds symbols, specifies a variety of print options,// assigns each print option to a PrintOptions object,// then prints with those options// Create a new document and add some symbol itemsvar docRef = documents.add();var y = docRef.height - 30;
for (var i = 0; i < (docRef.symbols.length); i++) { symbolRef = docRef.symbols[i];
symbolItemRef1 = docRef.symbolItems.add(symbolRef); symbolItemRef1.top = y;
symbolItemRef1.left = 100;
y -= (symbolItemRef1.height + 10);}
redraw();
// Create multiple options and assign to PrintOptionsvar options = new PrintOptions();
var colorOptions = new PrintColorManagementOptions();colorOptions.name = "ColorMatch RGB";colorOptions.intent = PrintColorIntent.SATURATIONINTENT;options.colorManagementOptions = colorOptions;
var printJobOptions = new PrintJobOptions();printJobOptions.designation = PrintArtworkDesignation.ALLLAYERS;printJobOptions.reverse = true;
options.jobOptions = printJobOptions;
var coordinateOptions = new PrintCoordinateOptions();coordinateOptions.fitToPage = true;options.coordinateOptions = coordinateOptions;
var flatOpts = new PrintFlattenerOptions();flatOpts.ClipComplexRegions = true;flatOpts.GradientResoultion = 60;
flatOpts.RasterizatonResotion = 60;options.flattenerOptions = flatOpts;
// Print with optionsdocRef.print(options);