Itext.jar 的版本是 5.0.5 往 c:/test.pdf 文件写入中文 Document doc = new Document(); FileOutputStream out = new FileOutputStream(new File("C:/test.pdf")); PdfWriter.getInstance(doc, out); //文字com/lowagie/text/pdf/fonts/ // BaseFont chinese = BaseFont.createFont("STSong-Light", // "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); // BaseFont chinese = BaseFont.createFont("C:/windows/fonts/simsun.ttc,1", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); BaseFont chinese = BaseFont.createFont(PdfTest.class.getResource("/") + "/simsun.ttc,1", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); Font fontChinese = new Font(chinese, 12, Font.NORMAL); Paragraph text = new Paragraph("你好。。。。",fontChinese); doc.open(); // 打开文档 doc.add(text);