HTMLWriter is not really supported but you are welcome to provide your fixes.
Paulo
> -----Original Message-----
> From: Mark Fraser [mailto:[email protected]]
> Sent: Thursday, October 01, 2009 1:25 AM
> To: [email protected]
> Subject: [iText-questions] HTMLWriter and tables
>
> 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
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
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/