Reply To: How to resize Graphic to specific inches ?

#90602
Kathy Cote
Member

Hi,
ok this code works

var PWidth = myDocument.documentPreferences.pageWidth;
var myNumber = parseFloat(PWidth);
var FinalWidth = myNumber + “in”;
alert (FinalWidth);
var w = new UnitValue(FinalWidth).as(“pt”);

myGraphic.resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,ResizeConstraints.KEEP_CURRENT_PROPORTIONS])

This article was last modified on December 19, 2016

Comments (0)

Loading comments...