/**
*首先啥也不干,先写一个转换中文的方法,话说谁要整一个全英文数字的就不
* 要写这个方法了....
*str :要转换的内容 c:字体大小
*/
private static Paragraph getChinese(String str,int c) throws DocumentException, IOException{ BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); Font FontChinese = new Font(bfChinese, c, Font.NORMAL); // 设置为中文 Paragraph pragraph=new Paragraph(str, FontChinese); return pragraph;