Error: java.lang.IllegalArgumentException: Additional patterns not supported
If I execute this method
tiff = TiffImage.getTiffImage(rafa,i,false);
Then it is through the next 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
+3
source to share
1 answer
If you are using com.lowagie
, you must be using version 2.1.7 or earlier (thanks to Amedee Van Gasse ). iText did not support "additional TIFF samples" prior to version 5.0 (released November 2, 2010) . Using v5.0.5 or newer should work. Of course v5 and up use AGPL and not MPL / LGPL which means some projects cannot use them ...
+2
source to share