I'm writing a script that generates some tables within a Google Doc using Google Apps Scripts. I'm looking to distribute the rows of those tables evenly. Essentially, to accomplish the same thing as right-clicking on said table in Google Docs and selecting Distribute Rows. Is this possible?
Right now I have a fully functioning script to generate these tables. Inside of it, I have:
var tableData = [['1', '2'],
['3', '4']];
table = body.appendTable(tableData);
///Now I want something like
// table.distributeRows(true);