为什么itext会将<
转换为<
,>
转换为>
,将&
转换为&
等等,请建议我应该怎么做用itext1.4.8修复它
代码
PdfTable table = new PdfTable();
BaseFont baseF = BaseFont.createFont(BaseFont.HELVETICA_BOLD,BaseFont.WINANSI,BaseFont.EMBEDED);
Font f= new Font(baseF,Font.DESFAULTSIZE,Font.NORMAL);
PdfCell cell = new PdfCell(new Paragraph("Gyet should not be > 5 & should not be < 1",f))
现在创建PDF时如上所述解析