Henry wrote:

Is there a way to change the line spacing in Paragraph or Chunk?
I've try do this...

   p = new Paragraph(chunk);
   p.setSpacingBefore(4f);
   p.setSpacingAfter(1f);
   p.setExtraParagraphSpace(50f);
   p.setIndentationLeft(25f);

but this only change the spacing between paragraph not the line spacing within paragraph.

line spacing in PDF is called leading.
So you need p.setLeading(16f);

In typography the leading is the amount of space between the melted letter blocks.
In Java leading has the same meaning as originally intended.
For some reason this is different in the PDF specification.
In PDF (and iText) the leading is the amount of space between the baseline of each line.
br,
Bruno


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to