Solved

Convert html to image

Posted on 2003-10-28
7
283 Views
Last Modified: 2010-03-31
I want to take an html file and convert it to an image.  The reason I want to do this is so that I can produce a thumbnail size image of the html file for preview purposes.  I'm not sure if there's a better way to do this, but I'm open to suggestions.
0
Comment
Question by:wheth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 9638572
You could render the page using JEditorPane and then use it's graphic context to paint the page to an image. It's (JEditorPane) HTML support is limited though and may not be sufficient for your needs. If not you'll need to find a component capable of satisfactoritly renderering the html, perhaps ICEBrowser.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9640599
Ah *there* you are objects! Been on holiday?
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9642010
0
 
LVL 92

Expert Comment

by:objects
ID: 9645483
Rugby World Cup is on over here.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9652777
Wow - you *must* be pretty interested to let it drag you way from EE ;-)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question