Reply To: How to resize Graphic to specific inches ?

#90601
Kathy Cote
Member

Hi,

We almost succeeded. If I use the code as below, it works.
I only want to change the value of the variable w, I would like to have the height of my page (which is variable).

/////

var myHeight = myDocument.documentPreferences.pageHeight;

//Instead of 3in, I would like to have height of my page. Is it possible ?
var w = new UnitValue (“3in”).as(“pt”);

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

Thanks again ;-)

Kathy

This article was last modified on December 19, 2016

Comments (0)

Loading comments...