Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] StyleSheet Styles

DominicTrix

2007-06-28


Hi there, I'm having to use the simpleHTMLParser and am having a little difficulty setting the styles of my html. Two things I would like to be able to do:
  1. Set border colour of table cells / tables
  2. Set the vertical align property of a table cell - at present, all my table cell contents are middle aligned which is most unnatractive!
I have searched the docs, the book and the source code and am having great difficulty finding what properties I can set with the StyleSheet object.
 
From the source code I have managed to ascertain that I can use b, i, u, leading, face, size, align and color but I can't find any other styles referenced. However, using bgcolor on a <tr> manages to set its background colour and so I'm wondering what other styles I can set that I can't see in the source code...
 
Anyway, thanks in advance,
 
Dominic
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.