Thread: [Jeuclid-users] FW: Hi!
Brought to you by:
maxberger
From: alex B. <abe...@ho...> - 2011-03-09 18:15:21
|
Hi all! I'm using JEuclid to transform MathML code into an image format, and render it in a web page. It's something like this: String codigo = "<math><mroot><mfrac><mn>2</mn><msup><mi>x</mi><mn>2</mn></msup></mfrac><mn>6</mn></mroot><msqrt><mi>x</mi></msqrt></math>"; Parser p = Parser.getInstance(); StreamSource s = new StreamSource(new StringReader(codigo)); Dimension dimensiones2 = conversor.convert(p.parseStreamSource(s), out, "image/png", LayoutContextImpl.getDefaultLayoutContext()); when "out" is the response object of a Servlet. My problem is that this conversion isn't very fast: it takes about 2 seconds to transform any simple equation. So, is there another possibility to do this transformation faster?? Thank you all! Alex |