File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic
 
friki data migration
Ranch Hand
Posts: 772
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic