Skip to main content
Participating Frequently
November 19, 2009
Answered

Fit Frame to Content

  • November 19, 2009
  • 1 reply
  • 676 views

Pls Help!  how can I make a all textframe <fit frame to content> over entire document which had many pages?

This topic has been closed for replies.
Correct answer Jongware

That would be this javascript:

app.activeDocument.textFrames.everyItem().fit(FitOptions.FRAME_TO_CONTENT);

The number of pages doesn't matter -- applying the everyItem function on the document picks up every single text frame.

1 reply

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
November 19, 2009

That would be this javascript:

app.activeDocument.textFrames.everyItem().fit(FitOptions.FRAME_TO_CONTENT);

The number of pages doesn't matter -- applying the everyItem function on the document picks up every single text frame.

Participating Frequently
November 19, 2009

thank you so much!