Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe InDesign Changing the size of all text boxes that are 3.294mm to 4mm

  • Changing the size of all text boxes that are 3.294mm to 4mm

    Posted by Jim Cooper on April 21, 2021 at 3:03 pm

    Hi there, A catalogue I’m working on has changed page size and now I have lots of hundreds of text boxes that are 3.294 mm high with overset text. Using the preflight I’ve been increasing the height of each of these boxes to 4mm individually. Having played around with find/change object to no avail, I was wondering how easy it would be to right a script to do this. Thanks in advance for any advice.

    Chris King replied 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Chris King

    July 18, 2023 at 5:18 pm

    function findTextFrames(doc, targetHeight, errorMargin) {

    var foundTextFrames = ;

    for (var i = 0; i < doc.pages.length; i ) {

    var page = doc.pages ;

    for (var j = 0; j < page.textFrames.length; j ) {

    var textFrame = page.textFrames ;

    if (Math.abs(textFrame.geometricBounds – textFrame.geometricBounds ) >= targetHeight – errorMargin &&

    Math.abs(textFrame.geometricBounds – textFrame.geometricBounds )

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy