iText PDF ライブラリを 2.0.4 から 5.4.1 にアップグレードすると、アプリケーションの既存の機能が壊れてしまいました。
テーブルを 1 つの複雑なテーブルにマージすることはできなくなりました。
//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 にアップグレードされましたが、おそらく私の障害とは関係がないと思います。
よろしくお願いします。