Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to use stylesheet fot parsing HTML ?

shruti shah

2007-06-12



Hi ,

I am converting HTML file to PDF .
I have used HtmlParse in that.
Following is the code
HtmlParser parser1 = new HtmlParser();
     try{          
     String str1 = new
String("<blockquote><div>"+profDetailForm.getBVI_Bio().getStringProperty("EDU_TEXT")+"</div></blockquote>");        
       byte[] bytes1 = str1.getBytes();                
       parser1.go(document,(new ByteArrayInputStream(bytes1)));
       }catch(Exception e){}

Here It displays the text in default fonts and margins on PDF.
I want to change the display of that text.
Should I use Stylesheet ? Please explain in detail as soon as possilbe.

Thanks in advance.
--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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.