Solved

Convert html to image

Posted on 2003-10-28
7
275 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference between sorce folder and folder in eclipise 3 42
SequenceInputStream example 3 21
java imports not found 4 49
Running JavaFX on the Raspberry Pi 27 132
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

749 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