问题
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