Another kestion, i see you can write a document with a node.So i try to re-use your graphicsNode and the method clipping but i write me that the convertion its impossible how to return a graphicsNode or other Graphics to use the mode "setClip" with a document or a element existing
----- Original Message ----- From: "Thomas DeWeese" <[EMAIL PROTECTED]> Newsgroups: gmane.text.xml.batik.user Sent: Thursday, July 07, 2005 1:58 PM Subject: Re: new method to do a clipping > Bastien DEBLAIS wrote: > > > i found a method to do a clipping and save it into an other svgFile. > > it's to change the value of the rootElement of the svgFile > > Ohh, you just want to set the initial view? You don't want > to actually clip the data to that view? If the destination > viewer is Batik you can actually do this with _no_ modifications > to the content. SVG supports 'viewBox linking' so you can have > a URL that specifies the viewBox to be used in the fragment > identifier: > > xlink:href="anne.svg#svgView(viewBox(125,125,100,100))" > > Unfortunately I don't think this is supported by Adobe... > > > but i have a problem lol : ) :i do a "setAttribut( )" but i dont change > > my attribut into the svgFile. > > how can i change the value ? > > If you need to rewrite the file you can use the static method: > > org.apache.batik.dom.util.DOMUtilities.writeDocument(Document, Writer) > > Note that this will not make the file any smaller it will just > change the portion that is visible when someone loads the document. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
