Markus wrote:
i just try to use fop in a servlet running under tomcat. there is a huge difference in runtime (*). after reading the faq i should use

<svg:font-face-uri xlink:href="url('/path/to/fonts.svg#BoldSVG')">

the only problem is, that i get an error in catalina.out saying:

An I/O Error occured while processing the URI 'url(/path/to/fonts.svg#BoldSVG)' specified on the elment <font-face-uri>.
at org.apache.batik.bridge.BridgeContext.getReferencedElement....

Somehow suspect you got something wrong. The uri() is for XSLFO sources, SVG uses XLink which ought to use plain URIs. Don't confuse the two. There may be an issue because the /path/to/fonts.svg#BoldSVG is a relative URI, which has to be resolved. It might be better to use a full absolute URI (either a file URL, like file:///path/to/fonts.svg#BoldSVG or go through the Webserver and use http://localhost/some-webapp-name/fonts.svg#BoldSVG, the latter might ease deployment).

time wget "http://localhost:8080/fop?xsl=in.xsl&xml=in.xml&pdf=out.xml"; -O out.log
...
  real 2.27s
  user 0.009s
  sys  0.003s

Note that you timed the download process, which is not the same as the creation. I also doubt that JVM start&warmup is really 4 seconds, unless you used a rather outdated machine for the CLI measurement. I'd think there is some caching involved.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to