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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -