xhtmlrenderer

Render image from servlet in flyingsaucer generated pdf

限于喜欢 提交于 2019-11-30 12:39:13
I'm using flyingsaucer to render an xhtml document to pdf through a servlet which returns the generated pdf document. The xhtml document features an image which is requested from another servlet. The image servlet checks who is logged in before returning the appropriate image. The code below shows how the image is requested: <img height="140" width="140" src="http://localhost:8080/myapp/servlet/DisplayPic" /> My problem is that the http request for the image is from the pdf renderer and not the logged in user so the image servlet doesn't know who's logged in and therefore the desired image is

Creating PDF reports with flot graph

本秂侑毒 提交于 2019-11-30 09:12:20
I am trying to implement an automatic report generation tool for my clients . I need to create reports in pdf format and i am very much comfortable in creating graphs using Jquery flot. I just need a way to get the graphs inside the pdf. I tried using flying saucer (xhtmlrenderer) to capture the image of the graph, but it doesn't seem to help me as the graphs being created by javascript. can xhtmlrenderer capture the elements created with javascript ? or is their any other tool which can capture the image of the graph ? NIA Flot draws its graph on HTML5 <canvas> element. So the possible

Creating PDF reports with flot graph

巧了我就是萌 提交于 2019-11-29 13:34:09
问题 I am trying to implement an automatic report generation tool for my clients . I need to create reports in pdf format and i am very much comfortable in creating graphs using Jquery flot. I just need a way to get the graphs inside the pdf. I tried using flying saucer (xhtmlrenderer) to capture the image of the graph, but it doesn't seem to help me as the graphs being created by javascript. can xhtmlrenderer capture the elements created with javascript ? or is their any other tool which can