Link Here
|
23 |
import java.io.UnsupportedEncodingException; |
23 |
import java.io.UnsupportedEncodingException; |
24 |
import java.util.Iterator; |
24 |
import java.util.Iterator; |
25 |
import java.util.Arrays; |
25 |
import java.util.Arrays; |
|
|
26 |
import java.util.ArrayList; |
26 |
|
27 |
|
27 |
import org.apache.poi.POIOLE2TextExtractor; |
28 |
import org.apache.poi.POIOLE2TextExtractor; |
28 |
import org.apache.poi.hwpf.HWPFDocument; |
29 |
import org.apache.poi.hwpf.HWPFDocument; |
Link Here
|
252 |
|
253 |
|
253 |
ret.append(getHeaderText()); |
254 |
ret.append(getHeaderText()); |
254 |
|
255 |
|
255 |
String[] text = getParagraphText(); |
256 |
ArrayList<String> text = new ArrayList<String>(); |
256 |
for(int i=0; i<text.length; i++) { |
257 |
text.addAll(Arrays.asList(getParagraphText())); |
257 |
ret.append(text[i]); |
258 |
text.addAll(Arrays.asList(getFootnoteText())); |
|
|
259 |
text.addAll(Arrays.asList(getEndnoteText())); |
260 |
|
261 |
for(String p : text) { |
262 |
ret.append(p); |
258 |
} |
263 |
} |
259 |
|
264 |
|
260 |
ret.append(getFooterText()); |
265 |
ret.append(getFooterText()); |