itextpdf - iText spacing inbetween paragraph -
managerp4.add(chunk.newline); managerp4.add(managervo.getmanageraddress().getroad2()); managerp4.add(chunk.newline); managerp4.add(managervo.getmanageraddress().getroad3());
this generate output in newline this
road 2 road 3
but want display in same line space between 2 values
you can use method com.itextpdf.text.paragraph.setspacingafter(float)
follows:
example
paragraph p = new paragraph("this string"); p.setspacingafter(10);
Comments
Post a Comment