Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
10

InDesign Script to create custom sized pages from data

Community Beginner ,
Jun 12, 2023 Jun 12, 2023

Hi there,

Looking for some help writing a script for use in InDesign. I have very little knowledge on how to write a script for InDesign but love using them! So any help would be AWESOME!

 

Problem:

We receive Excel sheets from Media companies containing a list of sizes (i.e for billboards - 576x28,600x920,750x360...) to be created. Currently I create an InDesign document, add pages and manually change each page size to suite the list, create the layouts and output files.

To make exporting faster I use a script called ‘Export-named-pages’. “The script determines file names for each page from the content, and exports images or PDFs. The result is uniquely named files of each page.”

 

Script Solution:

I’m after a script for InDesign (currently running 18.3) that will either create a document with custom sized pages from the supplied data - OR - change a pages size depending on the information supplied. Potentially from an excel sheet with a column of sizes WxH - OR - from text on a page in InDesign (after a quick data merge of sizes from supplied data).

 

Hopefully I have explained my self well enough 😐

 

Thanks in advance for any help!

TOPICS
How to , Scripting , UXP Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jun 15, 2023 Jun 15, 2023

Well... I ended up in the weeds chasing my tail.... BUT William Campbell had a script ready to go. See below.
https://www.marspremedia.com/software/indesign/pages-from-csv

Translate
Community Expert ,
Jun 12, 2023 Jun 12, 2023

Have a look at the following discussions

https://community.adobe.com/t5/indesign-discussions/is-it-possible-to-change-the-page-size-of-a-page...

https://community.adobe.com/t5/indesign-discussions/js-how-to-set-page-size/m-p/8725595#M31862

The first script shows how to change the size for a single page and the second one shows how to do it for all the pages in the document except parent pages.

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 13, 2023 Jun 13, 2023

Thanks for the info Manan. I'll take a look. Hopefully I can make sense of it all 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 13, 2023 Jun 13, 2023

It should be pretty straightforward. You can search the forum for samples to read a file as well. Try to play around, you will learn something, if you get stuck let us know what you came up with and we shall try to help you.

-Manan 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 15, 2023 Jun 15, 2023

Well... I ended up in the weeds chasing my tail.... BUT William Campbell had a script ready to go. See below.
https://www.marspremedia.com/software/indesign/pages-from-csv

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2023 Jun 18, 2023

Great that you found a script that could work for you. I would still suggest that you give the script a read along with the posts I shared and try to make sense out of it. Once you get a hang of it, you should be better placed the next time a need for a new script comes up.

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 19, 2023 Jun 19, 2023
LATEST

Hi Manan. A lot to get hang of but you are indeed correct. Now on to my next script adding text boxes withpage sizes above all the pages ... So far it works well (in part thanks to chatGPT) with a little quirk of some numbers rounding up wrong... 🙂 Baby steps 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines