Hello we just sold an Metafiles licence to a customer and
have a problem with converting
some wmf files to png after setting a license, without setting it
works fine in trial mode.
Method createDefaultRendering
returns null resulting in exception when writing image.
Exception in thread
"main" java.lang.IllegalArgumentException: im == null!
at javax.imageio.ImageIO.write(ImageIO.java:1457)
at javax.imageio.ImageIO.write(ImageIO.java:1521)
at renderWMF.renderWMF(renderWMF.java:26)
at renderWMF.main(renderWMF.java:14)
I don’t quite understand why is
that happening.
See attached zip file with java
code and problematic wmf files ( license file is not included).
I am using
aspose-metafiles-1.7.0.jar along with jai_codec.jar and jai_core.jar from jai
1.1.3 (no native acceleration).
Exception is same in windows 7
java 1.6.0_22 and SunOS 5.10 java 1.6.0_14.