如何创建PDF文件以编程方式在.NET中使用Acrobat? [英] How can I create PDFs programmatically using Acrobat in .NET?
问题描述
我有一个Web应用程序,需要能够以word文档转换成PDF编程之前发送电子邮件了。
我一直在使用第三方工具(阅读Aspose),但客户端写入非常复杂的Word文档和他们需要的格式,完美出来的PDF格式。阅读Aspose没有正确渲染的一切。
我打电话的Adobe销售,他们说的Acrobat可以以编程方式创建PDF文件。我买的Acrobat,以为一定会做的更好的东西呈现阅读Aspose比
我设置的COM调用正确的,它编译,但我发现以下异常运行时:
检索COM类工厂具有CLSID组件{72498821-3203-101B-B02E-04021C009402}失败,原因是以下错误:80070005
有些东西我读表明,Acrobat可能不会允许COM DLL要在服务器操作系统上注册。如果是的话,我会生气的。
帮助?当然,它不能在此很难以编程方式创建正确的PDF ....
你怎么样安装<一href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041&displaylang=en"相对=nofollow>微软另存为PDF插件;和保存Word以PDF格式?
I have a web app that needs to be able to convert word documents into pdf programmatically just prior to send an email out.
I've been using a 3rd party utility (aspose) but the client writes very complicated word documents and they need the formatting to come out perfectly on the pdf. Aspose isn't rendering everything correctly.
I call Adobe sales and they said Acrobat could create pdfs programmatically. I bought Acrobat, thinking that surely that would do a better job rendering things than aspose.
I set up the COM call correctly and it compiled, but I'm getting the following exception at runtime:
Retrieving the COM class factory for component with CLSID {72498821-3203-101B-B02E-04021C009402} failed due to the following error: 80070005.
Some of the things I'm reading indicate that Acrobat may not allow that COM DLL to be registered on a server OS. If so, I'm going to be angry.
Help? Surely it can't be THIS hard to create a correct PDF programmatically....
How about you install Microsoft Save as PDF addin; and save word to pdf?
这篇关于如何创建PDF文件以编程方式在.NET中使用Acrobat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!