These comments reflect the functionality in itext-paulo-139.

There are two "modes" for table borders which I'll describe as normal and variable.

1)
Normal mode borders are how borders have always worked in iText.  In this mode, the 
borders are
drawn centered on the cell boundaries.  I think all the cell borders are drawn first 
(left to right
top to bottom), then the overall table borders are drawn (for Table at least - 
PdfPTable doesn't
have built in borders for the whole table).  Borders for adjacent cells overlap.

If you use variable borders in itext-paulo-139 (by setting the width of an individual 
side or
explicitly calling setUseVariableBorders) then the borders will be drawn within the 
cell / table
boundaries and they do not overlap.  If you have differing border colors or widths on 
adjoining
sides, then the borders will be joined with a miter.

2)
Example using normal borders:
   setBorderWidth(0.5);
   setBorder(Rectangle.LEFT | Rectangle.BOTTOM);

Example using variable borders:
   setBorderWidthLeft(0.5);
   setBorderWidthBottom(0.5);

3) The value in setBorder is a bit flag of the sides to enable (see normal border 
example above).
Border widths, like all measurements in iText, are in units of points.

----- Original Message ----- 
From: "Mayank Mishra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 3:06 PM
Subject: [iText-questions] Table and cell borders


>
> 1)What is border behavior if borders overlap?(Table-cell,cell-cell)
>
> 2)How can we reset all borders(left,right,top,bottom) to "no border" and then
> set the required borders as per out need?
>
> 3)what is "value" in setBorder(int value) --pixel or...?
>
> Thanks
> Mayank Mishra




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to