itext html to pdf

来源:互联网 发布:日本股票行情查看软件 编辑:程序博客网 时间:2024/05/16 18:09

ByteArrayInputStream tInputStringStream = new ByteArrayInputStream(str.getBytes(StandardCharsets.UTF_8));

            XMLWorkerHelper xhelp = XMLWorkerHelper.getInstance();

            xhelp.parseXHtml(writer, document, tInputStringStream, StandardCharsets.UTF_8);

 

說明:itext.jar、XMLWorker.jar

0 0
原创粉丝点击