title: InDesign resize Text Frame
body: <p>I want to resize entire indesign document width and height here is my code its give error</p>
  
  <p>Error Number:11265
  Error string: This value would cause one or more object to leave the paste board</p>
  
  <p>please help me to fix, Thank you</p>
  
  <pre><code>var NEW_HEIGHT = '25 cm';  
  var NEW_WIDTH = '18 cm';  
  
  // MULTIPLE RESIZE() IN ONE STEP  
  // =============================  
  app.activeDocument.textFrames.everyItem().resize(  
  
      // Target bounding box(es) -- Use OUTER_STROKE_BOUNDS if needed  
      // ---  
      [CoordinateSpaces.INNER_COORDINATES, BoundingBoxLimits.GEOMETRIC_PATH_BOUNDS],  
  
      // Reference point -- Here resize is performed relative to the top edge  
      // ---  
      AnchorPoint.TOP_CENTER_ANCHOR,  
  
      // Absolute replacement  
      // ---  
      ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, 
  
      // [width, height] in points  
      // ---  
      [UnitValue(NEW_WIDTH).as('pt'), UnitValue(NEW_HEIGHT).as('pt')] 
      ); 
  </code></pre>