java.lang.RuntimeException: Font 'Courier-BoldOblique' with 'Cp1252' is not recognized.
at org.xhtmlrenderer.pdf.ITextFontResolver.createInitialFontMap(ITextFontResolver.java:485)
at org.xhtmlrenderer.pdf.ITextFontResolver.(ITextFontResolver.java:43)
at org.xhtmlrenderer.pdf.ITextRenderer.(ITextRenderer.java:124)
at org.xhtmlrenderer.pdf.ITextRenderer.(ITextRenderer.java:110)
at org.xhtmlrenderer.pdf.ITextRenderer.(ITextRenderer.java:106)
at org.xhtmlrenderer.pdf.ITextRenderer.(ITextRenderer.java:102)
at cc.isystem.smartfox.vote.PdfHelper.getRender(PdfHelper.java:30)
上面是异常
ITextRenderer render = new ITextRenderer();
//就再创建实例的时候抛出jar是flying-saucer-pdf-9.1.18.jar
下面是jar的源码部分try { addCourier(result); addTimes(result); addHelvetica(result); addSymbol(result); addZapfDingbats(result); // Try and load the iTextAsian fonts if(ITextFontResolver.class.getClassLoader().getResource("com/lowagie/text/pdf/fonts/cjkfonts.properties") != null) { addCJKFonts(result); } } catch (DocumentException e) { throw new RuntimeException(e.getMessage(), e); }