RE: SVG Diagrams in RTF documents

Denis Genard <[email protected]> Wed, 28 Aug 2002 17:23:33 +0200
Newsgroups gmane.text.xml.jfor.general
Message-ID <[email protected]>
Batik could indeed be used to rasterize the diagram (in jpeg format by
example).
But to keep optimal quality, a vector format would be preferable.

As no common vector format is supported by both RTF and batik, the only
remaining solution is to insert the SVGViewer as an OLE or OCX object.
RTF support it (with tags \objemb or \embocx), but requires the SVGViewer
component to be serialized in hexadecimal format (OLESaveToStream format).

Does anybody have tried this ?

Denis


-----Message d'origine-----
De : Bertrand Delacretaz [mailto:[email protected]]
Envoyé : Wednesday, August 28, 2002 5:07 PM
À : Denis Genard; '[email protected]'
Objet : Re: [jfor-users] SVG Diagrams in RTF documents


On Wednesday 28 August 2002 14:23, Denis Genard wrote:
>. . .
> Or has someone an idea of how it would be possible to implement it ?

To implement this you would have to extend the 
/org/jfor/jfor/rtflib/rtfdoc/RtfExternalGraphic class to convert SVG to a 
format supported by RTF.

Most probably, the batik toolkit (http://xml.apache.org/batik/) could be
used 
for this.

-Bertrand


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim