Hi,

it's taken some time, but the border width is now constrained to 75 Twips (as 
specified in the RTF specification) instead of to the arbitrary 2 point 
width.

Mark

On Friday 04 January 2008, Georg Nebehay wrote:
>                 try {
>             Document document = new Document(PageSize.A4.rotate());
>             
>             RtfWriter2 w = RtfWriter2.getInstance(document, new
> FileOutputStream("testDocument.rtf")); document.open();
>             
>             Table t = new Table(2,1);
>             
>             RtfCell cell1 = new RtfCell();
>             RtfCell cell2 = new RtfCell();
>
>             cell1.setBorders(new RtfBorderGroup(Rectangle.BOTTOM,
>           RtfBorder.BORDER_SINGLE, 10, new Color(255, 0, 0)));
>
>             t.addCell(cell1);
>             
>             t.addCell(cell2);
>             
>             document.add(t);
>             
>             document.close();
>             
>     } catch (Exception e) {
>             // TODO Auto-generated catch block
>             e.printStackTrace();
>     }



-- 
All replies must be addressed to the mailing list.
Any replies/questions not addressed to the mailing list will be ignored.

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to