Table aTable = new Table(2, 2);
        float[] intheaderwidths = { 18, 18};
        aTable.setWidths(intheaderwidths);
        aTable.setWidth(36);
        BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", false);
        Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
        Phrase ph = new Phrase("中文显示", FontChinese);
        Cell cell = new Cell(ph);
        aTable.addCell(cell);
......

解决方案 »

  1.   

    You can also add text in some predefined Chinese/Korean/Japanese fonts (using UNICODE):
    BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
    Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
    Chunk chunk = new Chunk("\u6e96\u53d7\u4fdd\u4eba", FontChinese);
    document.add(chunk);
      

  2.   

    我用上面的试了一下。出错提示:
    Missing configuration files for CJK fonts
    Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.
    不知道是什么原因,望指教
      

  3.   

    你还要安装ACROBAT READER简体中文包.
      

  4.   

    我装了acrobat reader中文版,是不是自动带中文包,还是需要重新安装一个