Scripts to Resize Pages to Content in InDesign

Ever need to change the size of a page to match the content on it? There are a couple of free scripts to automate the job.

Did you ever need to match the size of a page in InDesign to a text frame (or other content) on that page?

There are a couple scripts that can speed up the process for you.

One is by Michel Allio. It’s called Resize Page on Text Frame and it does exactly that, for all pages in a document. You don’t have to select anything before running the script. It resizes the pages to match Primary Text Frames on them.

Another option is Size Page to Thing, by Olav Martin Kvern. This script will work on any text frame or other object, even a simple line.

With this one you do have to select something before running the script. Also, be aware that the script takes stroke width into account when sizing the page. And, it only works on one page at a time. However, if you run it on a parent page all document pages based on that parent will change. Kvern also wrote a script that does the opposite: sizing an object to exactly fit a page.

Left: The page is resized to fit the line. Right: The line is resized to fit the page.

You can download both of those scripts, along with several others by Kvern here.

Thanks, Michel and Olav!

Bookmark
Please login to bookmark Close

This article was last modified on October 8, 2024

Comments (1)

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Mike Heath

    I have placed an adobe document in ID on a page of the same size. I now want resize the page to a textbox surrounding a part of the page. Kvern script throws an error (won’t accept a parent page). The Allio script does work but leaves some of the page unresized. I can fix this with the page tool but how to I make the scripts work properly?