On Thursday 26 April 2007, Uppalapati, Silpa (GE Healthcare) wrote: > 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? Generally it might be a good idea to have a look at the tutorial: http://itextdocs.lowagie.com/tutorial/
> 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? Use Tabs: http://itextdocs.lowagie.com/tutorial/rtf/features/tabs/index.html# > 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? I'm not entirely sure, but probably this gives you a Times Font, that is already italic. Try new Font(Font.TIMES_ROMAN, 14, Font.ITALIC); > 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? Check the JavaDocs http://itext.ugent.be/library/api/ Table.setBorder is your friend. > 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.setListSymbol is not supported. http://itextdocs.lowagie.com/tutorial/rtf/index.html#unsupported Greetings, Mark -- Q: What do you call a half-dozen Indians with Asian flu? A: Six sick Sikhs (sic). My GPG public key is available at: http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpYaWpzHolyE.pgp
Description: PGP signature
------------------------------------------------------------------------- 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/
