Hi,

 

I am very new to iText. I am using it to create documents in RTF format.
So the following are a few of the issues that I am facing. Can someone
help me out with these?

 

1)       I need the output in following format

 

            Patient Name: John, Doe
MRN: 12345

Birth Date: January 27,1960
Sex: F

 

i.e. On each line, I need to have 2 pieces of info one of which is left
aligned and the other is right aligned as shown above. How do I
accomplish this?

 

2)      Paragraph paragraph = new Paragraph ("Chapter One",
FontFactory.getFont (FontFactory.TIMES, 14, Font.ITALIC));

"Chapter One" is not being displayed in italics. Am I doing something
wrong here?

 

3)      I am using Table to create a table in the RTF document. Is there
a way to create a table without the borders being displayed?

4)      I am creating a list which contains a sublist within it. I don't
want the bullets to be displayed for the sublist. I have tried the
following but it doesn't seem to work i.e. the bullet is still being
displayed for the sublist.

List followList = new List(false, 12);

                  ListItem name = new ListItem("Allen,Todd L.,MD",
FontFactory.getFont(FontFactory.TIMES, 12));

                  followList.add(name);

                  List subList = new List(false, 12);

subListsetListSymbol("");

      subList.add(new ListItem("8th Ave,SLC,UT 84143",
FontFactory.getFont(FontFactory.TIMES, 10)));

The output is as shown 

*    Allen,Todd L.,MD

*     8th Ave,SLC,UT 84143

*     (801)408-1110

 

                         But what I want is this  

*    Allen,Todd L.,MD

    8th Ave,SLC,UT 84143

   (801)408-1110

 

 

 

 

Thanks,

Silpa

 

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to