Skip to main content
Inspiring
July 15, 2020
Question

Is there an extendscript to find text overflow in a table cell

  • July 15, 2020
  • 1 reply
  • 799 views

My process includes (80+ pages of table content)

1. import the data from excel to FM with rich text format to get as a table format.

2. Apply proper para formating and table row sizing etc.

3. Run through all the pages to check any text overlow in any cell.

4. Copy the overflowed text and paste it as a new row below and remove the overflowed text from the current row.

 

If there's a script to find way for step 3&4 would be much appreciated..

    This topic has been closed for replies.

    1 reply

    Legend
    July 16, 2020

    Hi,

     

    The way to know if a cell has overflowed is with cell.Overflowed. There is a discussion on that here:

     

    https://community.adobe.com/t5/framemaker/finding-cell-overflow-in-table-problem-with-script/m-p/7663483?page=1#M44050

     

    However, to know how much text has overflowed seems very difficult. It seems you would have to cut/delete in increments until Overflowed becomes false. If there is a better way, I don't know what it is.

     

    Hope this helps some.

    Russ

    Inspiring
    July 16, 2020

    Thanks Russ for guiding to the similar thread. at least i can use the code for final check.

     

    however, it would be great if it take to the page or row where the overflow takes place. any idea of how to do it?