xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram Maes <bram.maes.develo...@gmail.com>
Subject o.a.f.i.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.
Date Mon, 07 Mar 2016 11:03:29 GMT
Image is not rendering in pdf.  In the logs this is what I see:



11:57:24.293 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Creating new
Source for images/logo_nl.png
11:57:24.307 DEBUG o.a.f.i.loader.batik.PreloaderSVG - Error while trying
to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.
11:57:24.311 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Returning
Source for images/logo_nl.png
11:57:24.313 DEBUG org.apache.fop.fo.FONode - Invalid element:
fo:external-graphic inside foreign xml markup


Seems like ImageLoaderFactory were loaded correctly:

11:57:14.310 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.PreloaderWMF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.PreloaderSVG with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderTIFF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderGIF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderJPEG with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderBMP with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderEMF with priority 1000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderEPS with priority 1000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.PreloaderImageIO with
priority 2000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderRawPNG with priority 2000
11:57:14.486 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.ImageLoaderFactorySVG: MIME =
image/svg+xml, Flavor = text/xml;DOM;namespace=http://www.w3.org/2000/svg
11:57:14.486 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.ImageLoaderFactoryWMF: MIME =
image/x-wmf, Flavor = WMFRecordStore
11:57:14.540 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/vnd.wap.wbmp, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/vnd.wap.wbmp, Flavor = BufferedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/png, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/png, Flavor = BufferedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/x-png, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/x-png, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/jpeg, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/jpeg, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/bmp, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/bmp, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/gif, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/gif, Flavor = BufferedImage
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/png, Flavor = image/png;Raw
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/jpeg, Flavor = image/jpeg;Raw
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/tiff, Flavor = image/tiff;Raw
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/x-emf, Flavor = image/x-emf;Raw
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRawCCITTFax:
MIME = image/tiff, Flavor = RawCCITTFax
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryEPS: MIME =
application/postscript, Flavor = application/postscript;Raw
11:57:14.544 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryInternalTIFF:
MIME = image/tiff, Flavor = RenderedImage
11:57:14.545 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryPNG: MIME =
image/png, Flavor = RenderedImage
11:57:14.601 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.fop.image.loader.batik.ImageConverterSVG2G2D
11:57:14.602 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.fop.image.loader.batik.ImageConverterG2D2SVG
11:57:14.602 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.fop.image.loader.batik.ImageConverterWMF2G2D
11:57:14.602 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.xmlgraphics.image.loader.impl.ImageConverterBuffered2Rendered
11:57:14.602 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.xmlgraphics.image.loader.impl.ImageConverterG2D2Bitmap
11:57:14.602 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D
11:57:14.603 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered:
org.apache.xmlgraphics.image.loader.impl.ImageConverterRendered2PNG


 I have tried with jpg, png and gif, but they all give same result.

Any ideas about what could be wrong?

Kind Regards,
Bram.

Mime
View raw message