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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -