From df9e82b1a2a639f1041baf8ea7c49ef2f4ea43ca Mon Sep 17 00:00:00 2001 From: SuperMata Date: Tue, 17 Feb 2015 15:06:54 +0200 Subject: [PATCH] Update Table.java I changed the condition((Line 76)) in the for loop under the method "getColumnsNamesAsArray" from '<' to '<=' because the method was ignoring the last column name for the table. In order to see the last column name you had to ad an empty column name and empty row content on that column. --- src/pdftablesample/Table.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdftablesample/Table.java b/src/pdftablesample/Table.java index fffef20..5c0d50b 100755 --- a/src/pdftablesample/Table.java +++ b/src/pdftablesample/Table.java @@ -73,7 +73,7 @@ public void setFontSize(float fontSize) { public String[] getColumnsNamesAsArray() { String[] columnNames = new String[getNumberOfColumns()]; - for (int i = 0; i < getNumberOfColumns() - 1; i++) { + for (int i = 0; i <=getNumberOfColumns() - 1; i++) { columnNames[i] = columns.get(i).getName(); } return columnNames;