PrintFlattenerOptions
PrintFlattenerOptions
Section titled “PrintFlattenerOptions”new PrintFlattenerOptions()
Description
Section titled “Description”Contains flattening options for use when Illustrator outputs artwork that contains transparency into a non-native format.
Properties
Section titled “Properties”PrintFlattenerOptions.clipComplexRegions
Section titled “PrintFlattenerOptions.clipComplexRegions”printFlattenerOptions.clipComplexRegions
Description
Section titled “Description”If true
, complex regions should be clipped.
Default: false
Boolean
PrintFlattenerOptions.convertStrokesToOutlines
Section titled “PrintFlattenerOptions.convertStrokesToOutlines”printFlattenerOptions.convertStrokesToOutlines
Description
Section titled “Description”If true
, convert all strokes to outlines.
Default: false
Boolean
PrintFlattenerOptions.convertTextToOutlines
Section titled “PrintFlattenerOptions.convertTextToOutlines”printFlattenerOptions.convertTextToOutlines
Description
Section titled “Description”If true
, all text is converted to vector paths; preserves the visual appearance of type.
Default: false
Boolean
PrintFlattenerOptions.flatteningBalance
Section titled “PrintFlattenerOptions.flatteningBalance”printFlattenerOptions.flatteningBalance
Description
Section titled “Description”The flattening balance.
Range: 0.0 to 100.0.
Default: 100.0
Number (long)
PrintFlattenerOptions.gradientResolution
Section titled “PrintFlattenerOptions.gradientResolution”printFlattenerOptions.gradientResolution
Description
Section titled “Description”The gradient resolution in dots per inch (dpi).
Range: 1.0 to 9600.0.
Default: 300.0
Number (double)
PrintFlattenerOptions.overprint
Section titled “PrintFlattenerOptions.overprint”printFlattenerOptions.overprint
Description
Section titled “Description”Whether to preserve, discard, or simulate overprinting.
Default: PDFOverprint.PRESERVEPDFOVERPRINT
PrintFlattenerOptions.rasterizationResolution
Section titled “PrintFlattenerOptions.rasterizationResolution”printFlattenerOptions.rasterizationResolution
Description
Section titled “Description”The rasterization resolution in dots per inch (dpi).
Range: 1.0 to 9600.0.
Default: 300.0
Number (double)
PrintFlattenerOptions.typename
Section titled “PrintFlattenerOptions.typename”printFlattenerOptions.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Setting print flattening
Section titled “Setting print flattening”// Creates a new document, adds symbols to the document// then prints with a range of flattener balance settingsvar 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 PrintFlattenerOptions object and assign to a PrintOptions objectvar flatOpts = new PrintFlattenerOptions();var printOpts = new PrintOptions();printOpts.flattenerOptions = flatOpts;
// Set other print optionsprintOpts.ClipComplexRegions = true;printOpts.GradientResoultion = 360;printOpts.RasterizatonResotion = 360;
// Print the current document with flattening balance increments of 20for (var i = 0; i <= 100; i += 20) { flatOpts.flatteningBalance = i; activeDocument.print(printOpts);}