If you use a PdfPTableEvent it's possible to draw anything anywhere. > -----Original Message----- > From: Frank Fischer [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 09, 2006 2:09 PM > To: Paulo Soares; [email protected] > Subject: RE: [iText-questions] Default cell & ruler in table > > Hi Paulo > > Thanks for your answer. > > > > I got a little bit confused after trying to work with > > > PdfTable.getDefaultCell(). First i can not find that method > > > in the api docs > > > > Maybe you should look in the PdfPTable class. > > > Good Lord, i just overread the P in PdfPTable.... I think i'm > going to meet > my > > > > > I would like to set a horizontal ruler between two table > > > rows, something > > > like: > > > > > > text in row 1 > > > -------------------------- > > > Text in row 2 > > > > > > How can this be done? > > > > > > > Have the top row have only a bottom border. > > I just tried that, but there are two things i don't really > like. First, the > line is too thick in relation to the Font size i'm using in the table > (HELVETICA, 8), even with setBorderWidth(1). The lines used > to draw the > chars are much smaller so the rules looks too thick. > Second the line starts at the table borders without taking > care of the cell > padding which doesn't really look smart. So i wonder if there > is a way to > take these both aspects into account? > > PdfPCell cell = new PdfPCell(new Paragraph(new Chunk("PSTN", > FontFactory.getFont(FontFactory.HELVETICA, 10)))); > cell.setColspan(9); > cell.setBorderWidth(1); > > cell.setBorder(com.lowagie.text.Rectangle.BOTTOM); > cell.setBorderColorBottom(new > Color(0x00, 0x00, > 0x00)); > table.addCell(cell); > > Thanks for your help. > > - Frank > > >
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
