This content has been marked as final. Show 6 replies
santanu wrote:Yes. Though parts of it will require Java based, 3rd party APIs.
..I want to convert following mentioned file into tiff file.
Is it possible in java?
This task is best split into two parts.
1) Gain an image (e.g. BufferedImage) of the document as it might be rendered on screen (or printer etc.).
2) Write the image to TIFF format.
File extension: doc, tiff, textPart 1:
- For text files, gaining an image is relatively trivial. Put the text in a JTextArea and render that to the Graphics object of a new BufferedImage.
- For doc files, you'd need to add a 3rd party API that renders Word docs.
- What do you mean you want to 'convert' tiff --> tiff? No conversion is necessary.
The only part of your question relevant to this forum. I've had not dealings with TIFF or creating them.
Please help me.Please try not to sound quite so pathetic. It reduces your chance of getting help.
Thanks for the reply.
if anyone knows the exact solution please mention.
santanu wrote:You're welcome. OTOH, if you cannot frame a more specific question or request based on my reply than..
Thanks for the reply.
if anyone knows the exact solution please mention.Then this basically translates to "Plz gv me da codez!!!".
Nobody here is going to post the exact solution to your original question. Especially since it made little sense in ways I pointed out & which you seemingly ignored.
Using Java Imaging is it possible to do that.
santanu wrote:What is 'Java Imaging'? I understand the Java part, but the 'Imaging' has got me. It might be Graphics2D, ImageIO or JAI. In any case, for those three, JAI will be necessary for writing the TIFF, Graphics2D will be handy for rendering a BufferedImage, and it seems ImageIO will be redundant.
..Using Java Imaging..
..is it possible to do that.But as I explained earlier. Part of 'that' was about loading files of type .txt, .doc & .tiff.
J2SE can do .txt, J2SE cannot do .doc, and I do not understand the bit about TIFF.
Sheeesh.. why do I feel I am repeating myself?
is there anyone who can help me to convert text file into tiff or tif file?
Please send me some hint or any sample code.
It would be great, if anyone help me out.