Bookmark Topic Watch Topic
  • 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
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!