Skip to main content
lathac41153227
Participating Frequently
April 25, 2018
Question

Add textframe in framemaker.

  • April 25, 2018
  • 1 reply
  • 548 views

How to add textframe with pagesize in framemaker using extendscript ?

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
April 25, 2018

#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;

www.frameexpert.com