5 Replies Latest reply on May 15, 2010 2:11 AM by Mac_06

    Trouble while setting geometric bounds of anchored frame [JS]

    Mac_06 Level 2

      Hi,

       

      I'm facing the problem while setting the geometric bounds of anchored frames in InDesign CS2.

      It invokes the error no:- 11265 "This value would cause one or more object to leave the pasteboard" with the line

       

      var myAnchoredFrame = app.selection[0].textFrames.add({geometricBounds:["0","0","25.4","25.4"],anchoredObjectSe ttings:{anchoredPosition: AnchorPosition.ANCHORED}});

       

      I've checked with CS2 object model; it seems the same property setting as CS4 then this behavior really surprised me.

      Is there any irony with this?

      Could anyone figure it out?

       

      Mac