[oXygen-user] SVG rasterizer

Tony Graham
Tue Jun 7 12:33:36 CDT 2011


On Tue, June 7, 2011 5:25 pm, Wendell Piez wrote:
> It appears to work. ;-)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xsl:version="2.0"

I like XSL FO as much as the next person (or possibly more), but this
seems like overkill.

Here is an external tool command line that uses oXygen's Java runtime and
oXygen's Batik's rasterizer:

"${oxygenInstallDir}/jre/bin/java" -cp
"${oxygenInstallDir}/lib/batik-all-1.7.jar${ps}${oxygenInstallDir}/lib/xml-apis-ext.jar"
org.apache.batik.apps.rasterizer.Main -scriptSecurityOff -m image/jpeg -d
${cfd}/${cfn}.jpg  ${currentFileURL}

Works for me on both Linux and Windows.

If you run it as is, you'll get a Batik warning about no JPEG resolution
setting.  The rasterizer command line options are at
http://xmlgraphics.apache.org/batik/tools/rasterizer.html#using-binary

Regards,


Tony Graham                                   
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming




More information about the oXygen-user mailing list