}// getTextBody(TextParagraph)
protected static void refactorTables(Document d) {
for(Paragraph p : d) {
if (p instanceof Array) {
Array array = (Array) p ;
if (array.getCount() <= 0) {
continue ;
}// if
Row firstRow = array.iterator().next() ;
boolean isHeaderRow = true ;
for(Iterator<Cell> iter = firstRow.iterator(); iter.hasNext() && isHeaderRow; ) {
Cell cell = iter.next() ;
for(Iterator<Paragraph> cellIter = cell.iterator(); cellIter.hasNext() && isHeaderRow; ) {
Paragraph paragraph = cellIter.next() ;