使用 .Net 应用程序传真 PDF 文件

发布于 2024-07-25 18:48:13 字数 331 浏览 6 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

流殇 2024-08-01 18:48:13

您是否不需要将 PDF 拼合为一系列页面图像,例如 TIFF?

Wouldn't you need to flatten the PDF into a sequence of page images, perhap as TIFF's?

情绪失控 2024-08-01 18:48:13

这里有一些很好的代码,您可以使用它们来了解如何将 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

栖迟 2024-08-01 18:48:13

我遇到了同样的问题,发现服务器没有安装 Acrobat/Acrobat Reader。 安装 Adob​​e 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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文