错误:java.lang.IllegalArgumentException:不支持额外的示例 [英] Error : java.lang.IllegalArgumentException: Extra samples are not supported

查看:1814
本文介绍了错误:java.lang.IllegalArgumentException:不支持额外的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我执行此方法

tiff = TiffImage.getTiffImage(rafa,i,false); 

然后通过以下异常。

任何人都可以给我任何解决方案这个例外?

Then it's through the below exception.
Can anyone give me any solution for this exception?

Exception Stack Trace:
    java.lang.IllegalArgumentException: Extra samples are not supported.
      at com.lowagie.text.pdf.codec.TiffImage.getTiffImageColor(Unknown Source)
      at com.lowagie.text.pdf.codec.TiffImage.getTiffImage


推荐答案

如果你正在使用 com.lowagie ,您必须使用2.1.7或更早版本(感谢 Amedee Van Gasse )。 iText不支持TIFF的额外样本直到v5.0.5(2010年11月2日发布)。使用v5.0.5或更新版本应该可行。当然,v5及以上使用AGPL而不是MPL / LGPL,这意味着有些项目无法使用它们......

If you're using com.lowagie, you must be using version 2.1.7 or earlier (thanks Amedee Van Gasse). iText didn't support TIFF's "extra samples" until v5.0.5 (released Nov 2nd, 2010). Using v5.0.5 or newer should work. Of course, v5 and up use the AGPL rather than the MPL/LGPL which means some projects can't use them...

这篇关于错误:java.lang.IllegalArgumentException:不支持额外的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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