This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Do you mean, you have an image, stored in a GIF file, that contains a bitmap with text, and you want to make a program to recognise the text and create a Word document from the text? That is very difficult. You will need OCR (optical character recognition) software to do that; it's not something that you can easily program yourself.