1 Reply Latest reply on Apr 25, 2018 5:35 AM by frameexpert

    Add textframe in framemaker.

    lathac41153227 Level 1

      How to add textframe with pagesize in framemaker using extendscript ?

        • 1. Re: Add textframe in framemaker.
          frameexpert Level 4
          #target framemaker
          
          // You need a document object.
          var doc = app.ActiveDoc;
          
          // You need a page object.
          var page = doc.FirstBodyPageInDoc;
          
          // Add the text frame to the page.
          var textFrame = doc.NewTextFrame (page.PageFrame);
          
          // Resize the text frame to the page size.
          textFrame.Width = doc.PageWidth;
          textFrame.Height = doc.PageHeight;