Hi,

I have another question: I export an SVG Document (doc) this usual way:

SVGGraphics2D generator = new SVGGraphics2D(doc);
try {
        OutputStream out = new FileOutputStream(somefile);
        Writer w = new OuptutStreamWriter(out,"UTF-8");
        generator.stream(doc.getDocumentElement(),w,true);
}...

But there is no CSS included oder at least a reference. I added the reference to the external CSS to the doc this way:

SVGStyleSheetProcessingInstruction css = (SVGStyleSheetProcessingInstruction)d.createProcessingInstruction("xml-stylesheet","type=\"text/css\" href=\""+styleSheetUri+"\"");
d.insertBefore(css,d.getDocumentElement());


Thank you!

Regards, Tjorven


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



Reply via email to