在不使用Microsoft.Interop Services的情况下在C#中将Word文档转换为pdf [英] Convert word document o pdf in C# without using Microsoft.Interop Services

查看:78
本文介绍了在不使用Microsoft.Interop Services的情况下在C#中将Word文档转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在不使用Microsoft.Interop服务的情况下将.docx文件内部转换为.pdf.我在Google中进行搜索,发现了一些解决方案,但所有人都在使用此Interop.

我想没有Interop Services.是否可以在不使用Microsoft Interop Services的情况下将.docx文件转换为.pdf?有人可以帮我吗?
感谢您的答复.



问候,
Karthika

I need to internally convert the .docx file to .pdf without using Microsoft.Interop services. I searched in google and found some solutions but all are using this Interop.

I wanted to do without Interop Services. Is this possible to convert .docx file to .pdf without using Microsoft Interop Services? Can anyone help me in this?
Thanks for your reply.



Regards,
Karthika

推荐答案

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.


这篇关于在不使用Microsoft.Interop Services的情况下在C#中将Word文档转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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