Bookmark Topic Watch Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway
  • Mark post as helpful
  • send pies
  • Report post to moderator
This code example shows how to create an image from an RTF file. It does not handle exceptions at all - that doesn't mean your code shouldn't do that, either. The GUI code is based on this example

The code could also be used to convert HTML to an image with the help of the JavaDoc:javax.swing.text.html.HTMLEditorKit class, but be aware that that only supports HTML 3.2 and no CSS. The Java web browser component Lobo may be a better option. For PDF-to-image conversion, check out the PDFRenderer library.

CodeBarn CategoryCodeSamples
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!