Hallo!

In my small example with a table, letters like "g","j" or "y" end in the
 bottom border. Over the Text is some space left, but for letter which
are printed under the "baseline" of the text too, there's not enough
place between the baseline of the text and the bottom line of the cell
border.
What can I do, to get some space between the "g" and the bottom border
of the cell?

Thanks for any suggestions,
Martin


import com.lowagie.text.*;
import com.lowagie.text.pdf.*;

public class TestTable {
  public static void main (String args[]) throws Exception {
    Document            document = new Document(PageSize.A4);

    PdfWriter.getInstance(document, new FileOutputStream(args[0]));

    document.open();

    PdfPTable           table = new PdfPTable(2);

    table.setWidthPercentage(100);

    Font                font;
    PdfPCell            cell;

    font = FontFactory.getFont(FontFactory.HELVETICA, (float)12);
    cell = new PdfPCell(new Paragraph(new Chunk("TEST: gjy", font)));

    table.addCell(cell);
    table.addCell(cell);
    table.addCell(cell);
    table.addCell(cell);

    document.add(table);

    document.close();
  }
}


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to