[oXygen-user] SVG rasterizer

David Cramer
Wed Jun 8 19:55:27 CDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I mentioned Ant transformation scenarios before (they're new in 12.2),
have you checked them out? Transformation scenarios can live in the
framework for a document type. I'm not 100% clear on your use case, but
you can invoke batik from ant (use <java> or the batik ant task). Not
sure what else you'd be lookinf for.

David

On 06/08/2011 06:12 PM, Wendell Piez wrote:
> Hi,
> 
> An update: Tony Graham suggests doing this as a simple External Tool 
> rather than as a Transformation Scenario, with the command line:
> 
> "${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/png -d 
> ${cfd}/${cfn}.png  ${currentFileURL}
> 
> This works, and has the advantage of avoiding the overhead of XSLT and 
> FOP, so it is significantly faster.
> 
> The only downside I can see is that it isn't (yet) possible to bind 
> external tools to particular document types. (Or is it?)
> 
> Cheers,
> Wendell
> 
> On 6/6/2011 1:15 PM, Wendell Piez wrote:
>> Hi,
>>
>> As you know, Batik comes with rasterizer code to convert SVG into JPEG
>> and PNG formats. (And others, including TIFF, EPS and PDF.)
>>
>> I happily use it on other platforms, but sometimes I'd really like to do
>> this in oXygen ... any chance of adding a widget for SVG files to
>> support this?
>>
>> Cheers,
>> Wendell
>>
>> ======================================================================
>> Wendell Piez                            mailto:
>> Mulberry Technologies, Inc.                http://www.mulberrytech.com
>> 17 West Jefferson Street                    Direct Phone: 301/315-9635
>> Suite 207                                          Phone: 301/315-9631
>> Rockville, MD  20850                                 Fax: 301/315-8285
>> ----------------------------------------------------------------------
>>     Mulberry Technologies: A Consultancy Specializing in SGML and XML
>> ======================================================================
>> _______________________________________________
>> oXygen-user mailing list
>> 
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN8Bn7AAoJEMHeSXG7afUhk60H/28lnylyX0C/IdK1CUWBheOX
fTfUUbbSDkLqfAk8E72UUmFt6RXMOrq17BUxYZxcIbYAd8QaMyKR7f1NeCxgRlsc
PzTkGPAvZ34Dpjqnk7OFkuXUKMtoGYGDoob5qORgYcMm7K/OCGXCGtLzAkDOd9lb
m4fpgxTMmV07J2/+ItUyxajnDJFxH986wN2fGv/SbLw67bceL/aJoS5+Fmc5w+xI
CVl1P+MkmE+dZPHNjebLU/x1tLLBs6IonQLWqaI5WKKJZSeqARypnfEqX3w5AeuS
OK/3m2ClNN/8jFQgg/WqIv9b1t1tTqbIz+U80/Jl+x0RX8P/EtJX7zQU2dpXoNA=
=J3BR
-----END PGP SIGNATURE-----



More information about the oXygen-user mailing list