- Code: Select all
Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.pdf.BaseFont.getCharBBox(I)[I
at org.docx4j.org.xhtmlrenderer.pdf.ITextFontResolver$FontDescription.setMetricDefaults(ITextFontResolver.java:730)
at org.docx4j.org.xhtmlrenderer.pdf.ITextFontResolver$FontDescription.<init>(ITextFontResolver.java:661)
at org.docx4j.org.xhtmlrenderer.pdf.ITextFontResolver.addCourier(ITextFontResolver.java:461)
at org.docx4j.org.xhtmlrenderer.pdf.ITextFontResolver.createInitialFontMap(ITextFontResolver.java:441)
at org.docx4j.org.xhtmlrenderer.pdf.ITextFontResolver.<init>(ITextFontResolver.java:41)
at org.docx4j.org.xhtmlrenderer.docx.DocxRenderer.<init>(DocxRenderer.java:160)
at org.docx4j.org.xhtmlrenderer.docx.DocxRenderer.<init>(DocxRenderer.java:85)
at org.docx4j.convert.in.xhtml.XHTMLImporterImpl.getRenderer(XHTMLImporterImpl.java:218)
at org.docx4j.convert.in.xhtml.XHTMLImporterImpl.convert(XHTMLImporterImpl.java:620)
at lib_protocollo.Docx4j_HtmlToWord.htmlToWord(Docx4j_HtmlToWord.java:64)
at lib_protocollo.Lib_protocollo.createWord(Lib_protocollo.java:210)
at lib_protocollo.Lib_protocollo.main(Lib_protocollo.java:66)
i am using docx4j-nightly-20141016.jar, and there are also in the build path xhtml-renderer_3.0.0.jar and itext-2.1.7.jar.
Does this occur because of some compatibility problems or what may be the reason?