0 Replies Latest reply on Feb 15, 2011 9:00 AM by phredbel

    Font resize with page resize

    phredbel

      hello all,

      I am working on a script for InDesign Server (CS5) that resizes a single page INDD. right now I have all of the frames resizing with page, what isn't happening is the type size resizing with the other elements. Is there away to do that? This is what my script looks like so far:

       

      var strMyFile = '/Users/wellsf/SDKs/MSSB-SUP021-CLR-4x6/6424995-MSSB-SUP021-CLR-4x6_r2.indd';

      var strMyFileA = '/Users/wellsf/SDKs/MSSB-SUP021-CLR-4x6/6424995-MSSB-SUP021-CLR-4x6_r3.indd';

      var myFile = new File(strMyFile);

      var myDoc = app.open(myFile);

      app.layoutAdjustmentPreferences.enableLayoutAdjustment = true;

      app.layoutAdjustmentPreferences.allowGraphicsToResize = true;

      app.transformPreferences.whenScaling = WhenScalingOptions.APPLY_TO_CONTENT;

      app.transformPreferences.adjustStrokeWeightWhenScaling = true;

      app.transformPreferences.transformationsAreTotals = true;

      var myPages = myDoc.pages;

      var myPage = myPages.item(0);

      myPage.resize(CoordinateSpaces.INNER_COORDINATES,

      AnchorPoint.CENTER_ANCHOR,

      ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY,

      [1.25, 1.25], true);

       

      myDoc.save(new File(strMyFileA), false);

      myDoc.close();

       

      thanks,

      -fw