LwgDocument document = new LwgDocument();
try {
// step 2:
// we create a writer that listens to the document
PdfWriter.getInstance(document,
new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.pdf"));
HtmlWriter.getInstance(document,
new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.html"));
RtfWriter2.getInstance(document,
new GfrFileOutputStream("com.lowagie.examples.fonts.styles.ExtraStyles.rtf"));
// step 3: we open the document
document.open();
// step 4:
LwgFont font;