Re: Problem loading images in PDF with FOP
- I was informed by some guys at Chive.com (Apoc) that a URL starting
with / was inappropriate. This is a quote of the email from him about
FO and URLs in FO for embedding images into a resulting PDF.
To get the sample working correctly I made the following changes to
Changed the external-graphic src attribute from "url
(/smallsample.images/pict0.jpg)" to url(smallsample.images/pict0.jpg)
Any observations? Suggestions ?
--- In XSL-FO@yahoogroups.com, John Walker <dtd2050@y...> wrote:
> Hi all! I'm trying to transform an XSL-FO file to PDF in a servlet
> FOP embedded. I'm using FOP 0.20.4, JDK 1.4.0 and Tomcat 4.0.2.
> Everything works, but when there's an image in the XSL-FO like this:
> <fo:external-graphic height="2cm" width="4.8cm"
> the next exception occurs:
> javax.servlet.ServletException: org/w3c/dom/svg/SVGDocument
> at org.apache.jasper.runtime.HttpJspBase.service
> java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
> at org.apache.fop.image.analyser.ImageReaderFactory.Make
> at org.apache.fop.image.FopImageFactory.Make(Unknown Source)
> at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source)
> But I'm not using SVG but just a simple JPG image! Any idea? I need
> help... Thanks!!