I have 5 cells where the last two are filled with an image of a
signature. The two signatures are slammed right next to each other. I
need to have a little space between cells and cannot find the right
command to do it with PdfPTable. Below is some code snippets that might
help:

        PdfPTable aTable = new PdfPTable(5);
        int[] widths = {15,8,1,21,21};
        aTable.setWidths(widths);
        aTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
        aTable.getDefaultCell().setPadding(2);
        aTable.getDefaultCell().setPaddingLeft(4);
        aTable.getDefaultCell().setPaddingRight(4);



        cell = new PdfPCell(new Phrase("",
FontFactory.getFont(FontFactory.HELVETICA, 8)));
        cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER);
        resultTable.addCell(cell);      cell = new PdfPCell(new
Phrase("",
FontFactory.getFont(FontFactory.HELVETICA, 8)));
        cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER);
        resultTable.addCell(cell);      cell = new PdfPCell(new
Phrase("",
FontFactory.getFont(FontFactory.HELVETICA, 8)));
        cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER);
        resultTable.addCell(cell);
        cell = new PdfPCell(Image.getInstance(pic, null));
        cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER);
        cell.setHorizontalAlignment(Element.ALIGN_LEFT);
        cell.setVerticalAlignment(Element.ALIGN_TOP);
        resultTable.addCell(cell);
        cell = new PdfPCell(Image.getInstance(pic, null));
        cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER);
        cell.setHorizontalAlignment(Element.ALIGN_LEFT);
        cell.setVerticalAlignment(Element.ALIGN_TOP);
        resultTable.addCell(cell);

Thanks for any help.

Allan Wilson


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to