Convert MS word file to image in .Net C #
Virtual printer drivers are a common way to do this.
You can use the MODI virtual printer included in the office to print to TIFF.
Since PDF is a requirement, there are a number of free virtual printers for PDF. Office 2010 has a "Save to PDF" feature. Also worth looking at Open Office, opening MS Office documents and saving to PDF. I'm not 100% sure which API it is available, but open source
a source to share
What you are asking is a very difficult problem to solve, there are commercial products that are designed to do this: Aspose.Total for .NET from the larger names in this field.
For free or open source that you can do this with, I don't know of one that will directly meet your needs.
a source to share
Hmm yeah, in one hand it's a hard problem in the other, it's not that hard. There are several ways that you could go before buying commercial items. At the idea level:
- Your application. will open this file in the word ms in full screen and build a bitmap by doing a screen - cropping the borders and passing commands to display the next page.
- Your application. will contain the word component ms (the word object), do the same as before, but grab only this component.
Other resources:
a source to share
You can use virtual printer and send print command in ms word.
You can find examples of C # codes here http://www.pdfpilot.com/virtual-printer-howto-c-sharp.html
a source to share