Spring MVC - AbstractPdfView iText jar版 [英] Spring MVC - AbstractPdfView iText jar version

查看:201
本文介绍了Spring MVC - AbstractPdfView iText jar版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring MVC 3.1是否需要运行特定的iText jar版本?当我扩展AbstractPdfView类时,我在eclipse上收到错误,例如PdfWriter is missing..required in .class file..我正在使用itext 5.1.2版本..如果我将iText版本更改为2.7然后该错误发生了我想使用更新版本的iText,因为添加了很多新功能..是否有任何解决方法或假设这是与版本相关的问题我是完全错误的?

Does Spring MVC 3.1 need a specific iText jar version to run? When I extend the AbstractPdfView class, I am getting an error on eclipse like "PdfWriter is missing..required in .class file".. I am using itext 5.1.2 version.. If I change iText version to 2.7 then that error goes away.. I want to use newer versions of iText because there are lots of new features added.. is there any workaround to this or am I completely wrong in assuming that this is a version related issue?

推荐答案

是的...用于处理PDF生成的Spring框架(AbstractPdfView)附带的类是针对旧版本的iText(及其类)

Yep...the class that comes with the Spring framework for handling PDF generation (AbstractPdfView) is stuck against an older version of iText (and their classes)

以下是关于它的问题:

Spring pdf generation

如果您通过回复阅读指向一个提供了很好的Spring论坛主题解决方案:

Which if you read through the responses points you to a Spring Forum thread that provides a great solution:

http://forum.springsource.org/archive/index.php/t-105924.html

基本上你可以创建自己的AbstractPdfView,它使用最新版本的iText API(和类)

Basically you can create your own AbstractPdfView that uses the newest version of iText API (and classes)

这篇关于Spring MVC - AbstractPdfView iText jar版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆