0

Im doing a asp.net(c#) project where im required to read any document(pdf,word,spreadhseet) but in the end each page of the document should be converted to an image. I couldnt find any api realted to that. It would be helpful if anyone can suggest me with some. Code examples.

Also it would be nice if i can get any good links for the above.

Thanks in advance.

Vikneshwar
  • 1,029
  • 4
  • 20
  • 38

1 Answers1

2

You can use ghost script library (http://pages.cs.wisc.edu/~ghost/) to create an image for each page of a PDF file. There is an excellent code sample here: http://www.codeproject.com/Articles/32274/How-To-Convert-PDF-to-Image-Using-Ghostscript-API.

If you want to create images for other file types, you should convert them to PDF first. For MS office files, you can use office automation. For example, for word files it would be best to use office automation as only MS would know to convert word to PDF correctly. However, office automation as its cons, they are all over the web. Anyway, we use it for some time in my team and it looks as it is working well.

Ben
  • 398
  • 2
  • 8