When I try to create a simplet table with code such as:

Table table = new Table(3);
table.setBorderWidth(1);
Cell cell = new Cell("c1");
table.addCell(cell);
cell = new Cell("c2");
table.addCell(cell);
cell = new Cell("c3");
table.addCell(cell);



This produces a table tag like: <table width="80.0%" align="Center" 
cellpadding="0.0" cellspacing="0.0" border="1.0">

The fact that the value given to the border attribute is a float and not 
an integer causes the HTML renderer that I am using (Cobra) to not 
render the border.

I can't really blame the renderer as the border value is supposed to be 
an integer according to spec (border is a pixel value and pixels are 
integer values).  See:

http://www.w3.org/TR/html4/struct/tables.html#h-11.3.1
http://www.w3.org/TR/html4/types.html#type-pixels

Is there a way to control the format of this attribute (preferably 
without having to make my own Table subclass)?

Thanks,

Mark



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to