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]

Reply via email to