You're on the right track. You'd have to write a web service wrapper around Batik. Or you could put it in a servlet. I don't think there's anything that you could use out-of-the-box. Good luck!
On 26.02.2008 07:19:36 S. Woodside wrote: > Hi there, > > I'm developing a workflow where I have an SVG file, I modify some of > the elements (sort of like variable printing) and then I want my > users to be able to download the result as SVG, or as PDF. I'm > thinking of using batik for the PDF "rasterizing", it does a really > good job in my tests and it runs well on my debian box (nice job!) > > The thing is, my web app is in Rails, and I'm not too sure if doing a > system() call out to run batik is going to be very efficient. I seem > to recall that running java -jar has a lot of overhead, and then > maybe there's memory issues, or other things? I know that batik takes > several seconds on my (old) server to render my test SVG to PDF, and > I need sub-second times. > > What's the best/easiest way to do this? Should I set up a java-based > server and do some kind of RPC on it (like REST calls on localhost), > or can I run batik as a daemon or something? > > --simon > > PS I don't have any experience running any java servers (yet) > > -- > http://simonwoodside.com > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
