Saving a Word File as an Image

I want to save the first page of a Word document as an image. What methods exist for this with C #?

+3
source share
2 answers

You can print a document document in an XPS document, open it in a WPF application (.Net 3.5), and convert the first internal FixedPage object to a bitmap using the document functionality and visualization of the WPF structure. An XPS document printer is available if you have the .Net 3 infrastructure installed (maybe 3.5, I'm not sure).

+2
source

Word PDF ( ) Postscript ( Windows). PDF PS , , , ImageMagick ghostscript.

http://www.imagemagick.org/

http://pages.cs.wisc.edu/~ghost/

0

Source: https://habr.com/ru/post/1707851/


All Articles