iText PDF library을 2.0.4에서 5.4.1로 업그레이드하면 응용 프로그램의 기존 기능이 손상되었습니다.iText lib 업그레이드 후 PDF 기능이 깨졌습니다. 표를 병합 할 수 없습니다.
하나의 복잡한 테이블에 테이블을 병합하는 것이 더 이상 작동하지 않습니다.
//Creating tables
Table table0 = new Table(2);
Table table1 = new Table(7);
Table table2 = new Table(17);
Table table3 = new Table(24);
//Setting widths for tables
table0.setWidths(widths0);
table3.setWidths(widths);
table1.setWidths(widths1);
//Inserting 3 tables into one
Cell cell;
cell = new Cell(table1);
table0.addCell(cell);
Cell cell2 = new Cell(table2);
table0.addCell(cell2);
Cell cell3 = new Cell(table3);
cell3.setColspan(2);
table0.addCell(cell3);
//Populating cells and data for table1, table2, table3...
//Adding table to my pdf document
document.add(table0);
document.close();
실제 결과 : table0
문서에 추가되고 전혀 표시되지 않는. (나는 1,2,3을 따로 따로 추가해 보았습니다.) iText PDF의 이전 버전과 동일한 코드가 작동했습니다.
BG 정보 : 또한 Java 버전이 1.5 -> 1.7, jBoss가 4.0.4 -> 6.1에서 업그레이드되었지만 내 문제와 관련이없는 것으로 생각됩니다. 사전에
많은 감사합니다.
http://stackoverflow.com/questions/1080932/pdfptable-vs-table-vs-simpletable – mkl
감사합니다. 좋은 정보입니다. –