I have used jquery -jqplot to plot few line chats as per requirments, now these plots are to be saved in form of pdf which would be viewed as report.
The problem is that jqplot has only the feature to save the charts/plots as image which is not useful at this point.
Through search i found bullzip,pdf4ml,itext ,yahpconverter,icpdf are some of freewares used for html to pdf converstion. however i am not sure which is freeware and which api would be helpful for this kind of problem as here i need to save the entire web page.
could some one please guide me to the right path for implementing the nire web page to be saved as pdf docuement...?
Thanks for reply, for more clarity, the page to be converted into pdf is in jsp, i am going through few of the sample codes in itex, my query is that is it possible for the itex to render graphs or charts from a jsp page rather than normal java code?
as the pdf is only useful when the graphs are rendered using jquery .
posted 6 years ago
Also, do you want to do this on the server, or on the client?
posted 6 years ago
Hi ulf dittmer,
Thanks for reply,
The page i want to convert to pdf contains barcharts,line charts, and some csv data ( which is viewed as table in front end) . To be more specific this is kind of report generated page which displays pictorial data in web browser.The purpose is that the charts displayed need to be saved as pdf some what similar like jasper soft. This is a typical web application.
I think saving entire web page as pdf would be very useful and server we use are windows, server side or client side both are welcomed .
Also i need to use only freeware please let me know how can i proceed.
What I would do is to add CSS for print media that hides the navigation and other page decoration, and leaves only the data portion of the page to be printed. If the user wants to capture it as a PDF, they can use the browser Print capability, and capture it as a PDF as Ulf has already suggested.
The end user must install the appropriate print driver on their client machine. You cannot do it for them. (I find it appalling that Windows does not have this native capability; it's been available in OS X since the start, and is something I use every single day.)
If that's not good enough, then you'll likely have to find a way to generate the chart on the server rather than the client, and create the PDF there. Personally, I would not take this approach.