C# 免费 Doc 2 PDF 解决方案

发布于 2024-08-24 18:42:29 字数 216 浏览 3 评论 0原文

有人会建议一个免费的解决方案来以编程方式将 Office 文档(主要是 .doc)转换为 .NET 库形式的 PDF 或我可以从我的程序调用的命令行应用程序吗?谢谢

PS:我知道我可以在较新版本的 Office 中使用“另存为 PDF”,但运行该程序的某些客户端仍然使用较旧版本的 Office。

would anyone suggest a free solution to programmatically convert Office documents (mostly .doc) to PDF in the form of a .NET library or a command-line application i can call from my program? Thanks

PS: I know I can use SaveAs PDF in newer versions of Office, but some of the clients where the program will run still have older versions of Office.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

葬心 2024-08-31 18:42:29

不会 GhostScript (GhostScript 网站)为您做这件事吗?否则,我认为,在保留的情况下, PDFSharp 可能会做到这一点。如果这些不行,我希望这个可以:PDFCreate。事实上,仔细观察后,如果 Ghostcript 不行,我可能会考虑尝试 PDFCreate,因为它在我链接的网站上提供了一些示例代码。

您可能还想查阅有关以下主题的维基百科:PDF 软件列表

Won't GhostScript (GhostScript Website) do that for you? Otherwise, I think, under reserves, that PDFSharp might do it. If these won't do, I hope that this one will: PDFCreate. In fact, after a closer look, if Ghostcript won't do, I would perhaps consider trying PDFCreate as it provides some sample code on the wbesite I linked for it.

You might also want to consult Wikipedia on the topic: List of PDF software

蓝眸 2024-08-31 18:42:29

您也许可以使用 PrimoPDF 之类的工具,它基本上会安装一台打印机,当您打印到它时,会创建一个 PDF 文档。我实际上从未将其称为命令行,但由于它只是另一台打印机,因此任何标准打印代码都可以工作。

科迪

You can maybe use something like PrimoPDF which basically installs a printer that when you print to it, creates a PDF document. I've never actually called it command line but since it's just another printer, any standard print code would work.

Cody

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