我用java web应用程序中的文本制作了一个pdf表格。
生成的PDF是:
性别-第1栏:第2栏
男,1845,645
女性214 457
在阅读pdf时,我使用了以下代码:
ArrayList allrow= firstable.getRows();
for (PdfPRow currentrow:allrows) {
PdfPCell[] allcells = currentrow.getCells();
System.out.println("CurrentRow ->"+currentrow.getCells());
for(PdfPCell currentcell : allcells){
ArrayList<Element> element = (ArrayList<Element>) currentcell.getCompositeElements();
System.out.println("Element->"+element.toString());
}
}如何从pdf列读取文本并传递给int变量?
发布于 2011-10-05 23:11:39
为什么不将pdf列作为字段生成,这样读取起来就容易多了
https://stackoverflow.com/questions/7567124
复制相似问题