有什么工具可以把word、excel转换成PDF吗?
有没有可用于将 MS Word 和 Excel 文件转换为 PDF 的 SDK?我想在运行时在 Web 服务器上执行此操作。我使用 VS 2010,.Net Framewrok 4.0 我研究了 MS 互操作程序集,但这篇文章让我退缩了 http://support.microsoft.com/kb/ 257757
是否有任何第三方工具/SDK/服务可以在运行时执行此操作?
Is there any SDK available to convert MS word and Excel files to PDF ? I wan to do it on Web Server at run time. Im using VS 2010, .Net Framewrok 4.0
I looked into MS interop assembly but then this artical pushed me back http://support.microsoft.com/kb/257757
is there any thirdparty tool/SDK/Service available that will do that at runtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 iText,有一个 Java 和 C# 库,但我认为 .NET 库不是免费的。 http://www.itextpdf.com/
Check out iText, there is a Java and C# library however I think the .NET library is not free. http://www.itextpdf.com/
如果您追求完美的转换,那么除了以某种方式涉及 Office 之外,没有任何可用/可行的真正解决方案。普通的 MS-Interop 是一场噩梦,而且非常不可靠,但有很好的第三方解决方案可用。
看看 Muhimbi PDF 转换器服务。它作为可扩展且强大的 Windows 服务安装在您的环境中,并且专门设计用于在基于服务器的应用程序(例如 ASP.NET)中使用。
它带有一个基于友好网络服务的界面 允许在大多数现代环境(例如 Java 和 .NET)中使用它。它支持所有常见以及一些不常见的文件格式。还包括水印和PDF安全性。如果您的环境中有 SharePoint,则需要 SharePoint 优化版本 也可用。
免责声明,我曾参与过该产品的开发,因此通常的免责声明适用。话虽如此,效果很好。
If you are after perfect conversion then there is no real solution available / viable other than somehow involving Office. Plain MS-Interop is a nightmare and very unreliable, but there are good third party solutions available.
Give the Muhimbi PDF Converter Services a look. It installs in your environment as a scalable and robust Windows Service and has specifically been designed for use from server based applications such as ASP.NET.
It comes with a friendly web services based interface that allows it to be used from most modern environments such as Java and .NET. It supports all common as well as some not so common file formats. Watermarking and PDF Security is included as well. If you have SharePoint in your environment then a SharePoint optimised version is available as well.
Disclaimer, I have worked on this product so the usual disclaimers apply. Having said that, it works great.
您可以使用 Microsoft.Office.Interop 中已有的“另存为”功能
You can use the Save as function which is already available in Microsoft.Office.Interop