java - iText pdf functionality broken after lib upgrade - cannot merge tables -
ugrading itext pdf library 2.0.4 5.4.1 has broken existing functionality in application.
merging tables 1 complex table not work anymore.
//creating tables table table0 = new table(2); table table1 = new table(7); table table2 = new table(17); table table3 = new table(24); //setting widths tables table0.setwidths(widths0); table3.setwidths(widths); table1.setwidths(widths1); //inserting 3 tables 1 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 , data table1, table2, table3... //adding table pdf document document.add(table0); document.close();
actual result: table0
being added document not showing @ all. (i tried adding tables 1,2,3 separately , showed up) same code working older version of itext pdf.
bg info: java version has upgraded 1.5 -> 1.7, jboss 4.0.4 -> 6.1, consider not related trouble.
many in advance.
the table
class removed itext. replaced pdfptable
. you'll have change code. many years have passed between itext 2.0.4 , 5.4.1.
Comments
Post a Comment