I am trying to convert HTML to PDF using itextpdf 5.5.6. And the images like next are not exported.
<img alt="" src="http://localhost:8080/images/logo.jpg" style="height:53px; width:161px" />
Here is the source code I'm using.
InputStream is = new ByteArrayInputStream(bytes);
InputStream resourceInputStream = servletContext.getResourceAsStream("/css/doc_template.css");
if (resourceInputStream != null){
XMLWorkerHelper.getInstance().parseXHtml(writer, document, is, resourceInputStream, Charset.forName("UTF-8"));
} else {
throw new Exception("Not available resource:" + servletContext.getResource("/css/doc_template.css").getPath());
}