使用 .Net 应用程序传真 PDF 文件
我使用 VB.NET 开发了一个用于传真文件的 Windows 服务。 它适用于 .bmp、.jpeg 文件格式。 但它不适用于文件类型 .PDF。
我正在使用 FaxComLib (COM .dll) 发送传真。 当服务尝试传真 .PDF 文件时,我收到以下错误。 “System.Runtime.InteropServices.COMException(0x80070483):操作失败。在FAXCOMEXLib.FaxDocumentClass.ConnectedSubmit(FaxServer pFaxServer)
可能是什么问题?
谢谢, P.戈帕拉克里希南。
I developed a windows service to fax files using VB.NET. It is working for the file formats .bmp,.jpeg. But it is not working for the file type .PDF.
I am using FaxComLib (COM .dll) to send fax. I am getting following error when the service tries to fax .PDF file. "System.Runtime.InteropServices.COMException (0x80070483): Operation failed. at FAXCOMEXLib.FaxDocumentClass.ConnectedSubmit(FaxServer pFaxServer)
What could be the problem?
Thanks,
P.Gopalakrishnan.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否不需要将 PDF 拼合为一系列页面图像,例如 TIFF?
Wouldn't you need to flatten the PDF into a sequence of page images, perhap as TIFF's?
这里有一些很好的代码,您可以使用它们来了解如何将 pdf 转换为图像
http://www.codeproject.com/KB/applications/PDFViewerControl.aspx
There is some good code here that you can use for figuring out how to convert your pdf to image
http://www.codeproject.com/KB/applications/PDFViewerControl.aspx
我遇到了同样的问题,发现服务器没有安装 Acrobat/Acrobat Reader。 安装 Adobe Reader 使我能够使用 FAXCOMEXLib 发送 .PDF 文件,而无需拼合它们。
就像 FaxDoc.Body =“foo.pdf”一样简单。
I had the same problem and found that the server didn't have a Acrobat/Acrobat Reader installed. Installing Adobe Reader allowed me to use FAXCOMEXLib to send .PDF files without flattening them.
It was as simple as FaxDoc.Body = "foo.pdf".