
{filelink=10534}
/***** Code de MesExemples.com *******/
/**
* @(#)PDFListParagraphe.java
*
*
* @author
*sakoba(java.mesexemples.com) @version 1.00 2013/5/29
*/
import java.io.FileOutputStream;
import com.itextpdf.text.Document;
import com.itextpdf.text.List;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class PDFListParagraphe {
public static void main(String[] args) {
Document document = new Document();
try {
PdfWriter.getInstance(document,
new FileOutputStream("c:/PDFListParagraphe.pdf"));
document.open();
Paragraph paragraph = new Paragraph("Liste Lettre Hexa:");
List list = new List(false, 10);
list.add("A");
list.add("B");
list.add("C");
list.add("D");
list.add("E");
list.add("F");
paragraph.add(list);
document.add(paragraph);
} catch (Exception ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}