且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在不使用Microsoft.Interop Services的情况下在C#中将Word文档转换为pdf

更新时间:2023-02-15 11:24:05

Hi
您可以将文档打印为XPS 如何:以编程方式打印XPS文件 [ GhostXPS [
Hi
You can print the document as XPS How to: Programmatically Print XPS Files[^]

Then use the GhostXPS GhostXPS[^] to convert the XPS document to PDF.
I hope this will help you.
Roman


有很多产品可以将Word或其他文档转换为PDF.通过简单的Google搜索显示出192,000,000个结果,而排名前茅的结果均未使用Interop.为什么不想使用Interop?为什么要限制您的工具集?
There are many products available to convert Word, or other documents, to PDF. 192,000,000 results are shown from a simple Google search, and none of the top results use Interop. Why do you not want to use Interop? Why restrict your toolset?


您为什么要避免使用Interop的任何特定原因?请参见 OpenXML [
Any specific reason why you are avoiding Interop? See OpenXML[^] if that helps.