This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Converting HTML to an image? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Converting HTML to an image?" Watch "Converting HTML to an image?" New topic
Author

Converting HTML to an image?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Within my servlet, as well as providing links to certain pages, I need to show a preview image of what the linked page looks like.

Does anyone know if I can do this in Java without having to physically open the page?

Thanks,
James
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Remember, HTML is going to to look like text until you let a browser render it. By far the easiest approach is just to open the page in a browser - you could style this like a floating preview panel (like Google does).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
wood burning stoves
 
subject: Converting HTML to an image?
 
Similar Threads
Security issues on jsp pages
uploaded image with same name does not reflect on page immediately
how to refresh captcha image
problem in displaying image and css file in Eclipse europa 3.3.2
image in JSP page