Thanks. That works well and means I have one less dependency. I'm also interested in PDF and EPS rendering for Flying Saucer (an XHMTL Renderer).

On thing to note. I'm converting an SVG I got from the open clip art library. It's a picture of a leave with shades of brown and red. The resulting EPS still has the green strokes but the shaded background turns to plain black. I'm guessing that EPS doesn't support gradients?

Thanks,
- Josh

On Apr 26, 2005, at 9:53 AM, Jeremias Maerki wrote:

I'd try using the EPSTranscoder that's in pdf-transcoder.jar coming with
Batik. The full class name is: org.apache.fop.render.ps.EPSTranscoder.
Just follow the basic transcoding pattern described here:
http://xml.apache.org/batik/rasterizerTutorial.html


As an alternative you can also try
org.apache.fop.render.ps.EPSDocumentGraphics2D which should be roughly
equivalent to the thing you used.

On 26.04.2005 15:31:09 Joshua Marinacci wrote:
Hi guys. I've just started to use Batik. It's pretty cool!

I'm working on a program to convert SVG to EPS. I have made a simple
app which loads an SVG file into a JSVGCanvas and shows it on screen.
This works fine. When I want to export to EPS I create an EpsGraphics2D
object and pass it into the paint method of my canvas. The resulting
file looks fine except that the background is black. If I paint a blue
background onto the graphics and then paint the svg canvas I get blue
everywhere outside the bounds of the canvas, but the background of the
canvas is still black. I can paint a blue background on top of the svg
canvas and that works too. It's just the actual canvas area that seems
to get the black background. Strangely the on screen painting of the
canvas is white, though. It's only painting to the EpsGraphics2D where
it produces the black.


Any ideas?

oh, the eps graphics project is here:

        http://www.jibble.org/epsgraphics/

Thanks.

- Joshua



Jeremias Maerki


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


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



Reply via email to