Skip to main content
Participant
Nov 20, 2026 2:01 PM UTC
Question

How to batch resize 500 indesign documents with dimensions extracted from excel file, or from two text boxes inside the document with width and height dimensions. Every file has different size.

Hi, my name is Miguel Alvarez, 

I work creating design exhibitions and I would like to modify the size of 500 indesign documents for an upcoming exhibition. In past projects we created each one individually and resized to size individually, but I would like to change the process to automate the creation as much as possible. So far I was able to create the 500 documents with the same size and rename them automatically and I was going to change the size manually, but before I do this I would like to see if anybody could point to a better way. 

I would like to know if anybody knows a way to create a script where you could open the 500 individual indesign files that are together in the same folder, each indesign file has a unique name, like GR_Zone1_2.1.59.indd

Each indesign file currently is set at 500mm w x 500mm height and  inside there is a single page with three text boxes with individual paragraph styles and content:

  • One text box with an applied paragraph style of “StyleName”, has the individual name of each file, ie. GR_Zone1_2.1.59.indd, in one document or GR_Zone1_2.2.01.indd in another, 
  • A second text box, with the paragraph style of “StyleWidth” has the width in mm. Ie. 1550mm W in one document, but other document could be 1250mm Wide. 
  • A third text box with the paragraph style of “StyleHeight“ has the height in mm. ie. 700mm, in one document, and a different document could be 900mm wide. 

I also have an excel spreadsheet with the name, width and height info, if it is any easier from a spreadsheet so I could create the documents and change the size at the same time. 

I don’t know much about scripts, I can install javascript in the indesign scripts folder and execute them using a user panel, but I don’t know how to execute code inside indesign, I would not know even where to place it, so if you could offer step by step instructions would be great.  :-)

Thank you very much for your help. 

Kind regards

Miguel Alvarez

 

    2 replies

    Community Expert
    Nov 20, 2026 2:15 PM UTC

    I think this could be quite straightforward to automate with an InDesign script.

    Since you've already created the 500 documents and each contains its own width and height information using specific paragraph styles, you don't actually need to use Excel again.

    A script could open each INDD file in the folder, locate the text using the StyleWidth and StyleHeight paragraph styles, read the dimensions, resize the document and save a copy before moving on to the next file.

    The only thing I'd want to clarify is whether the text frames themselves need to be repositioned or scaled when the page dimensions change, or whether you're simply changing the page dimensions. That would determine how much additional work the script needs to do.

    Can you provide an example of file(s)?

    -------------------

    For future projects, I'd probably approach it slightly differently.

    Since you already have all the information in Excel, you could use a single InDesign template and a script that reads the spreadsheet, creates each document at its required dimensions, populates the text frames and saves it using the appropriate filename.

    That way you're automating the entire process rather than creating 500 documents at one size and resizing them afterwards.

     
    Translate
    Participant
    Nov 20, 2026 5:14 PM UTC

    Hi, Thank you very much for your prompt reply, 

    You are absolutely right, I was trying to do that process that you mention but I was not able to find the right approach so I was just muddling my way through, since I have no ability to write the script. 

    I have attached a sample indesign file, and a screenshot, the text in the document is not important, it was only to double check the size quickly, and then it will be deleted with that whole layer. What is important is to have the 500 indesign files with the right name and the right size extracted from a excel spreadsheet, a graphic schedule,  so that we can focus in the creation of the design for the graphic panels instead of creating manually the files and putting the sizes manually which could lead to mistakes. 

    Your help is much appreciated. Please break down the instructions as much as you can since I don’t have much experience with scripts. 

    Kind regards

    Miguel

     

     

    Translate