• Post Reply Bookmark Topic Watch Topic
  • New 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

want to convert html,text file into tif file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic