C# iTextSharp 的免费替代品
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18809433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
free alternative to iTextSharp
提问by AMH
I have a project not open source and I need to use something like iTextSharp , because iTextSharp licence say it should only be used in open sources
我有一个不是开源的项目,我需要使用 iTextSharp 之类的东西,因为 iTextSharp 许可证说它只能在开源中使用
any alternative please
请有任何选择
采纳答案by Lambda λ
There are multiple options.
有多种选择。
PDFSharp
PDFSharp
You could try PDFsharpit has an MIT licensewhich means according to what it says here you should be able to use in a commercial product.
你可以试试PDFsharp它有一个MIT 许可证,这意味着根据它在这里所说的,你应该能够在商业产品中使用。
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
特此授予任何人免费获得本软件副本和相关文档文件(“软件”)的许可,不受限制地处理本软件,包括但不限于使用、复制、修改、合并的权利、发布、分发、再许可和/或出售软件的副本,并允许向其提供软件的人员这样做,但须遵守以下条件
上述版权声明和本许可声明应包含在软件的所有副本或重要部分中。
FreeSpire.Doc
FreeSpire.Doc
There's also FreeSpire.Doc(on NuGet), which is limited to 3 pages and 500 paragraphs. It can convert Word documents to PDFs.
还有FreeSpire.Doc(在 NuGet 上),限制为 3 页和 500 个段落。它可以将 Word 文档转换为 PDF。
回答by cMinor
The AGPL basically states that you can use iTextSharp if any user of your application can have access to the source code of both iTextSharp (along with the possible modifications you did on it) AND your application under the AGPL terms. If you want to be released from these requirements, you have to pruchase a license from iText.
AGPL 基本上声明,如果您的应用程序的任何用户可以访问 iTextSharp(以及您对其进行的可能修改)和您的应用程序在 AGPL 条款下的源代码,则您可以使用 iTextSharp。如果您想摆脱这些要求,您必须从 iText 购买许可证。
You'll find more information here.
您将在此处找到更多信息。
If any doubt, don't hesitate to contact the sales department of iText.
如有任何疑问,请随时联系 iText 的销售部门。
So, in short Version 2 you can use without payment (standard library open source license). For version 5 you need to pay iText.
因此,简而言之,您可以免费使用第 2 版(标准库开源许可证)。对于第 5 版,您需要支付 iText。