autoknowledge
asked on
Save browser content as an image?
Hello,
I have an JSP page with images and text. can I save the page content (whatever in that browser) as an image as if I hit Ctrl-PrintScrn. I just want the content in that browser though vs the entire screen. After saving it as an image, ideally I want to be able to lauch MS PowerPoint with the image paste on the slide. So what I am after is on my JSP there will be a button that says "Save this page as an image and open it from PowerPoint". Hope I am making sense here...
Thanks
Stephen
I have an JSP page with images and text. can I save the page content (whatever in that browser) as an image as if I hit Ctrl-PrintScrn. I just want the content in that browser though vs the entire screen. After saving it as an image, ideally I want to be able to lauch MS PowerPoint with the image paste on the slide. So what I am after is on my JSP there will be a button that says "Save this page as an image and open it from PowerPoint". Hope I am making sense here...
Thanks
Stephen
Can be realised if you have an signed applet embed in that page. In the applet (which can contain the "Save page as image" button) you will have to use java.awt.Robot to take the screenshot. Once you have the screenshot as Image or BufferedImage object, saving to a file will be peace of cake.
Hope this helps.
Hope this helps.
Launching the MS PowerPoint, could be done from the same applet by using the Runtime class to launch the external process. The image could be saved in a temporary directory and passed as argument in the launch command. My question is what you'll do if your user does not have MS PowerPoint installed?
ASKER
I am actually more after saving the content of the browser as an image. After they have the image they can do all they want including opening the image in MS PowerPoint.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Stephen