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

Overset Text after updating the XML

Contributor ,
May 30, 2021 May 30, 2021

Copy link to clipboard

Copied

Hi Everyone,

 

I have updated the InDesign document with the new xml using scripts.

After the update i got an error as overset text issue and the code value moved to the next row and changed as three columns.

I have attached the screenshot here for reference

 

jothipriya_0-1622438653417.png

Help in this query is appreciated...

 

Thanks,

-Jothi

TOPICS
Bug , How to , Scripting

Views

357

Translate

Translate

Report

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

Contributor , Jun 04, 2021 Jun 04, 2021

Hi Peter and Manan,

 

Thanks for your guidence. I have done with my work through script.

 

Thanks,

-Jothi

Votes

Translate

Translate
Community Expert ,
May 31, 2021 May 31, 2021

Copy link to clipboard

Copied

Help in what way? Avoiding the problem or fixing it?

It looks as if you use a script to size the columns -- if that's the case then the sizer needs to be fixed.

If on the other hand you place content in an existing table, then after inserting the content you should check whether there are any overset cells and fix them. The simplest (and probably the quickest) test to check whether a table contains overset cells is this one:

 

 

if (myTable.cells.everyItem().overflows.join('').indexOf('true') >= 0) {
  // the table has at least one overset cell
}

 

 

If there are overset cells, look for them and widen the cell until it's no longer overset or decrease the type size to fit the cell's content to the cell.

P.

Votes

Translate

Translate

Report

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
Contributor ,
Jun 02, 2021 Jun 02, 2021

Copy link to clipboard

Copied

Hi Peter,

 

Yes, you're correct. I have fitted the cell content.

Now my problem is the code value moves to the second row after update then it appears as a 3 column, what to do for this scenario???????

Your help in this query is appreciated.

Votes

Translate

Translate

Report

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 03, 2021 Jun 03, 2021

Copy link to clipboard

Copied

Hi @jothipriya,

@Peter Kahrel already gave you an idea to follow 

quote

If there are overset cells, look for them and widen the cell until it's no longer overset or decrease the type size to fit the cell's content to the cell.


By @Peter Kahrel 

Did you try that? If no then do try and if yes then provide more details on what did not work. Share the code snippet accordingly so that someone can point out areas that can be changed.

-Manan

Votes

Translate

Translate

Report

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
Contributor ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

LATEST

Hi Peter and Manan,

 

Thanks for your guidence. I have done with my work through script.

 

Thanks,

-Jothi

Votes

Translate

Translate

Report

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