0 Replies Latest reply on Jun 1, 2011 9:10 AM by xmlapi

    GeometricBounds of previous page

    xmlapi Level 1

      I have a 2 page spread.


      When I add a new page, I want the geometric bounds of the previous page to be adjusted to



      for(int i=0; i < 100; i++)



              Page newPage = doc.Pages.Add(idLocationOptions.idAfter, prevPage);

      var g = prevPage.TextFrames[1].GeometricBounds;
               TextFrame t = newPage.TextFrames.Add(Type.Missing, idLocationOptions.idUnknown, Type.Missing);
               var geometricBounds = t.GeometricBounds;
                          geometricBounds = g;

           t.GeometricBounds = geometricBounds;





      The problem is that the new text frame on the new page WILL ACTUALLY be on the PREV PAGE instead of the new page DUE to the geometric bounds. The geometric bounds need to be adjusted so it's on the NEW page BUT same height and width and position/margins. How would I do it?