0

i am trying to add spaces between the string

Example:

Paragraph preface = new Paragraph();
String para1="First Name :      chandra";
 preface.add(new Paragraph(para1, 
            new Font(Font.FontFamily.TIMES_ROMAN, 11,Font.NORMAL)));
document.add(preface);

i am expecting the output as: First Name : chandra but i got the output as below: First Name :chandra

Christophe Roussy
  • 16,299
  • 4
  • 85
  • 85
user511
  • 1
  • 2

0 Answers0