0

这真的很奇怪,方法 parseXHtml 被重载并且参数列表(PdfWriter,Document,InputStreamReader,InputStreamReader)存在。我检查了javadoc,反编译jar等,它就在那里!但是eclipse不会加载正确的!

XMLWorkerHelper 类型中的方法 parseXHtml(PdfWriter, Document, InputStream, Charset) 不适用于参数(PdfWriter, Document, InputStreamReader, InputStreamReader)

    public void parseXHtml(PdfWriter writer, Document doc, InputStream in, InputStream inCssFile) throws IOException
    {
       parseXHtml(writer, doc, in, inCssFile, null, ((FontProvider) (new XMLWorkerFontProvider())));
    }
4

1 回答 1

1

的最后两个参数parseXHtml是类型InputStreamCharset分别:

parseXHtml(PdfWriter, Document, InputStream, Charset)

将方法参数更改为:

public void parseXHtml(PdfWriter writer, Document doc, InputStream in, Charset charset) throws IOException
    {
     ...
    }
于 2013-11-05T07:03:49.007 回答