FlyingSaucer R8兼容的Itext最高是多少?
FS 发行版与 IText 2.0.8 捆绑在一起,并且考虑到 2.xx 范围内有许多更新的版本,我想知道是否有人在更新的版本中有任何经验。我猜测 FS 也可能与 3.xxx + 兼容...
有人知道/确认吗?
The FS distro comes bundled with IText 2.0.8 and given that are many more recent releases in the 2.x.x range i was wondering if anyone had any experiences in more recent releases. I am guesssing there is a chance FS might also be compatible with 3.x.x.x +...
Anybody know/confirm ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我刚刚尝试了 2.1.7,它有一些类 (API) 更改,导致 Flying Saucer 出现链接错误...所以简而言之,2.0.8 似乎是最新支持的版本。
I just tried 2.1.7 and it has some class (API) changes which cause Flying Saucer to get linkageerrors...so i n short no it would appear that 2.0.8 is the latest supported version.
要回答是否有任何版本的flyingsaucer与iText 5.x兼容的相关问题,答案是肯定的。
我相信,自从 ollo 的回答以来,对该项目进行了重组,使其更加 Maven 友好,而不是有一个单独的 itext5 分支,现在有一个单独的 itext5 maven 工件。在这里找到它:http://mvnrepository.com/artifact/org.xhtmlrenderer。
我认为 core-renderer 神器是他们使用的旧神器,可以替换为 Flying-saucer-pdf-itext5 以实现 iText5 兼容性。这个新工件有一个外部依赖项,即组
com.itextpdf
、工件itextpdf
和版本 5.x。我尝试使用 5.4.5 版本,这对我来说效果很好。To answer a related question of whether there is any version of flyingsaucer which is compatible with iText 5.x, the answer is yes.
I believe that, since ollo's answer, there has been a restructuring of the project to make it more maven friendly, and instead of there being a separate itext5 branch, there is now a separate itext5 maven artifact. Find it here: http://mvnrepository.com/artifact/org.xhtmlrenderer.
I think the core-renderer artifact is the old artifact they used, and can be replaced with flying-saucer-pdf-itext5 for iText5 compatibility. This new artifact has a single external dependency, and that is group
com.itextpdf
, artifactitextpdf
and version 5.x. I tried with version 5.4.5, and that worked fine for me.通过 itext5 分支,也可以将 Flying Saucer 与 iText 5.x 一起使用。
来源: http://code.google。 com/p/flying-saucer/wiki/FAQPDF#Versions_of_iText_Supported
另请参阅:https:/ /github.com/flyingsaucerproject/flyingsaucer/tree/itext5
With the itext5 branch it's possible to use Flying Saucer with iText 5.x too.
source: http://code.google.com/p/flying-saucer/wiki/FAQPDF#Versions_of_iText_Supported
See also: https://github.com/flyingsaucerproject/flyingsaucer/tree/itext5
请注意,iText 5.x 随 AGPL 许可证一起分发,该许可证限制了您可以执行的操作(请参阅 http://itextpdf.com/terms-of-use/)。
iText 2.1.7 / 4.2.0 使用 LGPL / MPL 许可证分发,使用更安全。
此外,还有一个较新版本的 Flying Saucer Renderer 使用 iText 2.1.7。
看
http://mvnrepository.com/artifact/org.xhtmlrenderer/flying -saucer-pdf/9.0.1
maven依赖是:
Note that iText 5.x is distributed with the AGPL license which is restrictive with what you are allowed to do (see http://itextpdf.com/terms-of-use/).
iText 2.1.7 / 4.2.0 is distributed with the LGPL / MPL license and are safer to use.
Also, there is a newer version of Flying Saucer Renderer which uses iText 2.1.7.
See
http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-pdf/9.0.1
The maven dependency is: