Hi all, I am trying to construct a table without any borders, the following Code:
Table t = new Table(1); t.setBorder(Table.NO_BORDER); t.setBorderWidth(0); t.setSpacing(0); t.setPadding(0); t.setSpaceBetweenCells(0); t.setSpaceInsideCell(0); Phrase charPhrase = new Phrase("Some Text", FontFactory.getFont(FontFactory.COURIER, 10)); Phrase zonePhrase = new Phrase("Some More Text", FontFactory.getFont(FontFactory.COURIER, 10)); Phrase numrPhrase = new Phrase("Still More Text", FontFactory.getFont(FontFactory.COURIER, 10)); Phrase offsetPhrase = new Phrase("No More Text", FontFactory.getFont(FontFactory.COURIER, 10)); t.addCell(charPhrase); t.addCell(zonePhrase); t.addCell(numrPhrase); t.addCell(offsetPhrase); document.add(t); Produces a table with each cell outlined in black. Also, There seems to be a lot of space between the top of the cell, and the top of the text. Almost as if by default the Phrase has some padding around it. I have read the tutorials, the faqs, and some of the mailing archives. My two questions are: 1.) Is it possible to create a table without any visible borders? 2.) I would like to use the default, fixed-width font Courier. When I use it as a phrase, it seems to have some extra padding on the top. Is there a way to reduce the padding on the top, so when the phrases are put into new cells, there is less perceived space between two lines? Thanks! ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions