pdf - Change the width of the cell content in java using PDFCell -
hi have app generates pdf page using java itext, single column width changing times if there more 16 character rest of character go below in pdf page example have customer acct varies 10 - 16 characters appears on pdf page
gw1bkcadt402814 1
instead need on same line gw1bkcadt4028141. last character goes below in column.
pdfptable ttable = new pdfptable( 13 ); pdfpcell c1 = pdfconstants.getdefaultpdfpcell( pdfpcell.align_left, 2 ); c1.setphrase( new phrase( new chunk( t.getcustomeracc(), styleconstantspdf.font_noramal_8 ) )); ttable.addcell( c1 );
Comments
Post a Comment