Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

want to convert html,text file into tif file  RSS feed

 
ravi kanna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

i need to convert html and text file into tiff file.

pls help me if any API is available.

i used IMageIO.read(inputstream)

it is not working.


regards

Giri babu
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you want to convert a HTML or text file into an image (in TIFF format).

ImageIO.read(...) is for reading and image file. Why are you trying to do that if you have to write a TIFF file?

Basically, you should do this:
- Create a BufferedImage
- Render the text or the HTML on the bitmap of the BufferedImage
- Save the BufferedImage as a TIFF file using ImageIO.write(...)

Note that rendering HTML is not a simple job.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!