PrintCoordinateOptions
PrintCoordinateOptions
Section titled “PrintCoordinateOptions”new PrintCoordinateOptions()
Description
Section titled “Description”Information about the media and associated printing parameters.
Properties
Section titled “Properties”PrintCoordinateOptions.emulsion
Section titled “PrintCoordinateOptions.emulsion”printCoordinateOptions.emulsion
Description
Section titled “Description”If true
, flip artwork horizontally.
Default: false
Boolean
PrintCoordinateOptions.fitToPage
Section titled “PrintCoordinateOptions.fitToPage”printCoordinateOptions.fitToPage
Description
Section titled “Description”If true
, proportionally scale the artwork to fit on media.
Default: false
Boolean
PrintCoordinateOptions.horizontalScale
Section titled “PrintCoordinateOptions.horizontalScale”printCoordinateOptions.horizontalScale
Description
Section titled “Description”The horizontal scaling factor expressed as a percentage (100 = 100%).
Range: 1.0 to 10000.0.
Default: 100.0
Number (double)
PrintCoordinateOptions.orientation
Section titled “PrintCoordinateOptions.orientation”printCoordinateOptions.orientation
Description
Section titled “Description”The artwork orientation.
Default: PrintOrientation.PORTRAIT
PrintCoordinateOptions.position
Section titled “PrintCoordinateOptions.position”printCoordinateOptions.position
Description
Section titled “Description”The artwork position on media.
Default: PrintPosition.TRANSLATECENTER
PrintCoordinateOptions.tiling
Section titled “PrintCoordinateOptions.tiling”printCoordinateOptions.tiling
Description
Section titled “Description”The page tiling mode.
Default: PrintTiling.TILESINGLEFULLPAGE
PrintCoordinateOptions.typename
Section titled “PrintCoordinateOptions.typename”printCoordinateOptions.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
PrintCoordinateOptions.verticalScale
Section titled “PrintCoordinateOptions.verticalScale”printCoordinateOptions.verticalScale
Description
Section titled “Description”The vertical scaling factor expressed as a percentage (100 = 100%)
Range: 1.0 to 10000.0.
Default: 100.0
Number (double)
Example
Section titled “Example”Managing print coordinates
Section titled “Managing print coordinates”// Creates a new document with symbol items that extend// off the page then print with each print orientationvar docRef = documents.add();var y = 500;var x = -70;
if (docRef.symbols.length > 0) {
for (var i = 0; i < 5; i++) { symbolRef = docRef.symbols[0];
symbolItemRef1 = docRef.symbolItems.add(symbolRef); symbolItemRef1.top = y; symbolItemRef1.left = x;
x += 30; }
redraw();
// Print it with various Coordinate Options var coordinateOptions = new PrintCoordinateOptions(); var options = new PrintOptions(); options.coordinateOptions = coordinateOptions;
coordinateOptions.emulsion = true; // reverse from right to left coordinateOptions.fitToPage = true; // fit artwork to page size coordinateOptions.orientation = PrintOrientation.LANDSCAPE; docRef.print(options);
coordinateOptions.emulsion = false; coordinateOptions.fitToPage = false; coordinateOptions.orientation = PrintOrientation.PORTRAIT; coordinateOptions.horizontalScale = 50; coordinateOptions.verticalScale = 50; docRef.print(options);}