将 DOC 转换为 PDF
我知道这个问题已经被问了一遍又一遍,但我找不到我正在寻找的答案。那我就厚颜无耻地再试一次。
我正在寻找一种可靠的独立工具来将 Word 文档转换为 PDF。命令行工具或 .NET 库是理想的选择,但常规的 Windows DLL 也可以工作。但我的应用程序不能依赖以下任何一项:
- 安装打印机驱动程序
- 编写 MS Office
- OpenOffice
- 脚本 编写商业库的
- 许可证通过 UI 控制窗口应用程序
另一方面,我并不是在寻找完美的保真度,事实上我甚至不关心字体和格式,只关心基本的表格/文本框布局是否正确。
我查看了 Aspose.Words.NET,虽然它完美地完成了转换工作,但它价格昂贵,而且似乎有点矫枉过正。我很想(在我的挫败感中)只使用 Aspose 的试用版,因为该项目不是公开发布的,但是试用版无法与未公开的段落数量以上的文档一起使用,并且文档对此非常模糊点所以我不知道接下来会发生什么。无论如何,这是错误的。 ;)
有什么想法吗?
I know this question has been asked over and over, but I can't find the answer I'm looking for. So I'll shamelessly try again.
I'm looking for a reliable, stand-alone tool for converting Word documents to PDF. A command-line tool or .NET library would be ideal, but a regular Windows DLL could work, too. But my app can't rely on any of the following:
- installing a printer driver
- scripting MS Office
- scripting OpenOffice
- licence for a commercial library
- controlling a windowed application via the UI
On the other hand I'm not looking for perfect fidelity, in fact I don't even care about fonts and formatting, just about getting the basic table/textbox layout about right.
I looked at Aspose.Words.NET, and while it does the conversion job perfectly, it's expensive and seems like overkill. I was tempted (in my frustration) to just use the trial version of Aspose as this project isn't for public release, but the trial version won't work with documents above an undisclosed number of paragraphs and the documentation is very vague on this point so I wouldn't know what to expect down the line. Anyway that would be wrong. ;)
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个帖子:How do I conversion Word files to以编程方式生成 PDF?。
ITextSharp 是文档转换的流行选择(它是免费且开源的)
have a look at this thread: How do I convert Word files to PDF programmatically?.
ITextSharp is a popular choice for document conversion (it's free and open source)