我已经成功地编译和使用FOP 1.0与.NET IKVM 0.44.5,但我不能得到它显示在生成的PDF的任何图像。
当我在命令行通过IKVM运行FOP,我得到一个java.io.EOFException的。 当我用java变换相同的文件时,图片完美展现了。
java.lang.reflect.UndeclaredThrowableException
at $Proxy0.readUTF(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:612)
at org.apache.xmlgraphics.image.loader.util.ImageUtil$1.invoke(ImageUtil.java:246)
at $Proxy0.readUTF(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:469)
at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:710)
at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1543)
at org.apache.xmlgraphics.image.loader.impl.imageio.PreloaderImageIO.preloadImage(PreloaderImageIO.java:71)
at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:176)
at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128)
at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:122)
at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
Caused by: java.io.EOFException
at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:346)
at java.io.DataInputStream.readUTF(DataInputStream.java:607)
at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:332)
... 49 more
有没有人得到的图像使用FOP + IKVM工作? 任何帮助或指针的解决方案将高度赞赏!