Java/PDF RTF/RomanList
Версия от 18:01, 31 мая 2010; (обсуждение)
Roman letter list
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();
}
}