Note, that this doesn't work if you're adding cells with 
PdfPTable.addCell(PdfPCell).  In that case, you need to make sure that the 
PdfPCells which you are adding have been set up with 
PdfPCell.setBorder(Cell.NO_BORDER).  I've actually built a helper class to 
do such things in-line, so I can avoid excessive temp variables.  I can do 
things like: 

table.addCell(new PlainPdfPCell("hello", 
PdfFonts.HELVETICA_8_BOLD).centered().colSpan(2)); 

The PlainPdfPCell sets it's border to Rectangle.NO_BORDER in its 
constructor, just because I almost always don't have borders around my 
cells.  (PdfFonts is just a class which holds a bunch of static references 
to Font objects). 

 John 

Paulo Soares writes: 

> PdfPTable.getDefaultCell().setBorder(Rectangle.NO_BORDER) 
> 
> Best Regards,
> Paulo Soares 
> 
>> -----Original Message-----
>> From:        Ravi Prakash Vinnamuri [SMTP:[EMAIL PROTECTED]]
>> Sent:        Monday, May 13, 2002 17:13
>> To:  [EMAIL PROTECTED]
>> Subject:     [iText-questions] height of a row in a table 
>> 
>> I'm using table and getting data into table dynamically. But I'm not able
>> to control the row height.
>>  I found that row height can be controlled using pdfptable but I didn't
>> find a method in pdfptable where by I can display table with no borders.
>> Can somebody suggest me a way to control the height of row in a table  OR
>> a way to display a pdfptable with no borders.
>>  
>> Thanks, 
> 
> _______________________________________________________________ 
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
 

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to