grefel
9/29/2014 - 12:46 PM

Find all Tables in InDesign Document

Find all Tables in InDesign Document

function getAllTables(dok) {
	allTables = [];
	app.findTextPreferences = NothingEnum.NOTHING;
	app.findTextPreferences.findWhat = "<0016>";
	var result = dok.findText();
	for (var i =0 ; i < result.length; i++) {
		allTables[i] = result[i].tables[0];
	}
	return allTables;
}