Greetings,

I am using Itext to generate rtf. I am using com.lowagie.text.Document and 
com.lowagie.text.rtf.RtfWriter2 and  com.lowagie.text.Table

I want to find out if my table can fit the page but can't figure out ho wto 
convert my tabel to RtfTable (com.lowagie.text.rtf.table.RtfTable) so I can 
use getTableFitToPage(). BTW as per java doc i have this method is protected. 
The constructor for the RtfTable take RtfDocument. So do i have to use 
RtfDocument some how?

Also I want to draw horizontal line. I am using following code without success

                Graphic gr70 = new Graphic();
                Graphic gr100 = new Graphic();
                gr70.setHorizontalLine(10, 70, Color.BLUE);
                gr100.setHorizontalLine(10, 100, Color.BLUE);

                doc.add(new Paragraph());
                doc.add(gr70);

The paragraph part is working fine but not the horizontal line part. What I am 
doing wrong?

Appreciate any help.

Shailesh



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to