document has no pages with itext

后端 未结 4 692
北荒
北荒 2021-02-09 16:41
<%
OutputStream output=response.getOutputStream();
response.setContentType(\"application/pdf\");
response.setHeader(\"Content-Disposition\", \"inline; filename=detail         


        
4条回答
  •  感情败类
    2021-02-09 16:52

    XMLWorkerHelper.parseXHtml() expects (X)HTML or (X)HTML snippets. Try this:

    worker.parseXHtml(writer, document, new StringReader("

    helloworld

    "));

提交回复
热议问题