import java.io.FileOutputStream;
import java.io.IOException;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.GreekList;
import com.lowagie.text.ListItem;
import com.lowagie.text.RomanList;
import com.lowagie.text.ZapfDingbatsList;
import com.lowagie.text.ZapfDingbatsNumberList;
import com.lowagie.text.pdf.PdfWriter;
//
public class RomanListsPDF {
public static void main(String[] args) {
Document document = new Document();
try {
PdfWriter.getInstance(document, new FileOutputStream("RomanListsPDF.pdf"));
document.open();
RomanList roman = new RomanList(35);
roman.setRomanLower(true);
roman.add(new ListItem("first item"));
roman.add(new ListItem("Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text "));
document.add(roman);
} catch (Exception ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}
itext.zip( 1,748 k)