创建 PDF 的最佳 C# API
您能推荐任何适用于 C# 的 PDF API吗?免费是最好的,但我不介意付费。
Can you recomend any PDF API for C#. Free is the best, but I don't mind paying for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我使用了 PdfSharp。它是免费的,开源的,使用起来相当方便,但我不能说它是否是最好的,因为我还没有真正使用过其他东西。
I used PdfSharp. It's free, open source and quite convenient to use, but I can't say whether it is the best or not, because I haven't really used anything else.
更新:
我不确定 iText# 库的许可证何时或是否更改,但它是根据 AGPL 获得许可的,这意味着如果包含在闭源产品中,则必须获得许可。该问题(目前)不需要免费或开源库。人们应该始终调查项目中使用的任何库的许可证类型。
我已经在 .NET C# 3.5 中成功使用了 iText#;它是用于 PDF 生成的开源 Java 库的一个端口,而且是免费的。
有一个可用于 iTextSharp 版本 5 和 官方开发人员文档,以及 C# 示例,可在 itextpdf.com 上找到
Update:
I'm not sure when or if the license changed for the iText# library, but it is licensed under AGPL which means it must be licensed if included with a closed-source product. The question does not (currently) require free or open-source libraries. One should always investigate the license type of any library used in a project.
I have used iText# with success in .NET C# 3.5; it is a port of the open source Java library for PDF generation and it's free.
There is a NuGet package available for iTextSharp version 5 and the official developer documentation, as well as C# examples, can be found at itextpdf.com
我在 C# 中生成 PDF 的首选是 Winnovative 的 PDF 生成器。虽然我们主要使用它来将 HTML 转换为 PDF,但它的多功能性足以有效地处理各种 PDF 生成任务。
My go-to choice for PDF generation in C# is Winnovative's PDF generator. While we primarily utilize it for converting HTML to PDF, it's versatile enough to handle various PDF generation tasks efficiently.