my dog learned polymorphism*
The moose likes Java in General and the fly likes .doc to .tiff conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark ".doc to .tiff conversion" Watch ".doc to .tiff conversion" New topic
Author

.doc to .tiff conversion

Umesh Sharma
Greenhorn

Joined: Oct 30, 2008
Posts: 3
Hi All,

I would like to know how to convert a doc file into a tiff file.
It would be very helpful for me if anyone can provide source code as well.
I know that there lot of third party tools to do this.
But i want to do within java.

Thanks a lot.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"wicked_yudi112233", please read the private message I just sent you regarding an important administrative matter.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

Originally posted by Paul Clapham:
"wicked_yudi112233", please read the private message I just sent you regarding an important administrative matter.


"wicked_yudi112233".
Please do take the naming policy seriously. That is one of the things we really do stress on here at the ranch.
This was already brought to your notice by Nitesh Kant in this thread.
Please click on this edit profile link to adjust your screen name.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there,

Also please note that Javaranch is NotACodeMill, we try to nudge people in the right direction as opposed to giving out source code

Can I ask why you don't want to use a third party library?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
For an all-Java approach I think the best option is to use a library like Apache POI for reading DOC files. You would then write code that uses the POI API for getting at the content and style information of the document, and use that to create an in-memory image (like a BufferedImage). The image can then be stored as a TIFF file. This would be a decent-sized project for even moderately complex DOC files, though - probably at least a week or two.


Ping & DNS - my free Android networking tools app
 
 
subject: .doc to .tiff conversion
 
Similar Threads
Convert PDF files to Tiff files
merge multiple documents (Eg: Tiff, DOC, PDF) in to a single TIFF file
Image viewer
Converting text files to TIFF
Microsoft office files -> jpg