Reply To: Missing graphic elements in table header

Home Page / Forums / General InDesign Topics (CLOSED) / Missing graphic elements in table header / Reply To: Missing graphic elements in table header

#89011

With a bit of caution ;-) The following lines should convert all graphic cells in header rows to text cells in all tables in the document. It will only honor a header row in the first row of a table!

var everyHeaderRow = app.activeDocument.textFrames.everyItem().tables.everyItem().rows[0].getElements();

for (var i = 0; i<everyHeaderRow.length; i++) {
  var curHR = everyHeaderRow[i];
  if (curHR.rowType == RowTypes.headerRow) {
    curHR.cells.everyItem().convertCellType(CellTypeEnum.TEXT_TYPE_CELL , true);
  }
}

This article was last modified on October 13, 2016

Comments (0)

Loading comments...