creating a PDF froma JSP containing multiple Linear Guage widget

Recommended Posts


We are using Fusion widgets v3 licenced version. We are making use of the Linear Guage in our application along with some grids holding data which lead to this chart redrawing. Now we have a requirement of saving the details of the whole JSP page in a PDF on click of a button. We are in the progress of making use of iText to do the same. but iText requires these charts to be saved in some place as a image so as to put them in the PDF.

But when i checked i could see that there is only an option of Saving the chart as a image with the help of right click on the chart. Is there any option such as a js function which could do the same, so that we can call that when user clicks on a button.

Awaiting your responses.

Share this post

Link to post
Share on other sites

You can, but it's kinda slow if you've got more than 10 or so charts.




Create a javascript function to call this on all of your charts:






I also put all of my charts in iframes so when the Flash movie is refreshed by the .jpg, the entire page doesn't reload.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now