Error : java.lang.IllegalArgumentException: Extra samples are not supported

折月煮酒 提交于 2019-12-10 19:07:19

问题


If I execute this method

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

回答1:


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...



来源:https://stackoverflow.com/questions/31288641/error-java-lang-illegalargumentexception-extra-samples-are-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!