转换的Word文档[多页]成JPEG文件在C# [英] Convert Word document [Multi Page] into JPEG File in C#

查看:125
本文介绍了转换的Word文档[多页]成JPEG文件在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要字的文件[3或4页文档]到在C#中的JPEG文件的内容进行转换。

I want to convert the contents of word file [3 or 4 page document] into JPEG file in C#.

我已经使用剪贴板选项尝试,但它是转换仅在第一页。请帮我。

I have tried using clipboard option, but it is converting only the first page. Please help me.

推荐答案

我认为的 Ghostscript的可输出JPEG

i think that ghostscript can output jpeg

所以这个过程将是:


  • 先配置PostScript打印机(打印到文件的打印机端口)

  • 打印MSWORD文件到PostScript文件

  • 工艺,与GhostScript的文件,你有很多的输出选择这里

您可以在C#代码整个事情的这里是在C#中 ghostscript的包装...你可以使用COM互操作与MSWORD工作

you can code the whole thing in C# here is a wrapper for ghostscript in c# ... and you could use COM interop to work with msword

这个解决方案是不是最好的一个公开的Web服务器,虽然,因为这需要MSWORD要安装

this solution isn't the best for a public webserver though, as it would require msword to be installed

我用Excel之前以这种方式工作(通过COM互操作的Web服务器)中提取的数据...但是,这是在公司内部网络服务器

i have worked with excel before in this way (through COM interop on a webserver) to extract data ... but that was on an internal company webserver

这篇关于转换的Word文档[多页]成JPEG文件在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆