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

Text frames and master page

Explorer ,
Nov 15, 2023 Nov 15, 2023

Text frames for some reason are unlinked to my master page. When I adjust the master page text frame nothing changes on the page text franes.

I forgot to centre the text frame on the master page, now all the text frames on every page are slighlty off centre.

I can centre it with the following:

Select the object style: general option: Fixed width, set the width to 24p

Then window object and layout, align centre.

Problem is I need to do this for over 100 pages.

Is there a way to centre all the text frames with a given object style?

(not vertical justification) horizontally to the margins of the respective page or a way to relink them to the master page text frame and then centre the text box on master page?

TOPICS
How to
337
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 ,
Nov 15, 2023 Nov 15, 2023

Hi @Theo331728749dq2 , can you attach a copy of the document to a reply?

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 ,
Nov 15, 2023 Nov 15, 2023

This script - posted by @rob day - should help you:

 

https://community.adobe.com/t5/indesign-discussions/global-adjustment-to-text-frames-placed-independ...

 

or at least be a good start.

 

Of course, if you are on Windows you could always use my tool:

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
Explorer ,
Nov 15, 2023 Nov 15, 2023

Basically, my text frame is at the correct position at the right hand side but the width needs to be increased on the left hand side by about 2-3mm

I get the following error with the script in the link:

Error 30614

Error string: invalid object for this request

Line 2

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 ,
Nov 16, 2023 Nov 16, 2023

I don't think my script in the other thread would work for what you are describing. Can you attach your ID file?

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
Explorer ,
Nov 18, 2023 Nov 18, 2023

The following shifts all the text frames left:

app.documents[0].pages.everyItem().textFrames.everyItem().

move

(

    // to parameter:

    undefined ,

   

    [

        "-0.035in" ,

        "0"

    ]

);

But then it’s imposible to know whether all the frames are centred, because I had edited some of the text frames,so I’m trying to figure out how to horizontally “centre” all the text frames. This might be a better option.

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 ,
Nov 18, 2023 Nov 18, 2023
LATEST

It's a good start - you just need to process this "collection" of objects one-by-one in a loop - that's why I've suggested rob's script - as a template. 

 

Sorry, I'm not JS guy so can't serve you full working code - just offer ideas / algorithms. 

 

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