{filelink=10670}
/***** Code de MesExemples.com *******/
import java.io.FileOutputStream;import com.itextpdf.text.Document;import com.itextpdf.text.Element;import com.itextpdf.text.Font;import com.itextpdf.text.Phrase;import com.itextpdf.text.pdf.BaseFont;import com.itextpdf.text.pdf.ColumnText;import com.itextpdf.text.pdf.PdfContentByte;import com.itextpdf.text.pdf.PdfWriter;public class UsingUnicodePDF { public static void main(String[] args) { Document document = new Document(); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("UsingUnicodePDF.pdf")); document.open(); document.add(new Phrase("u0161")); document.add(new Phrase("u0178")); document.add(new Phrase("u017D")); document.add(new Phrase("u017E")); } catch (Exception e) { System.err.println(e.getMessage()); } document.close(); }}