You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by senthil <se...@exorindia.com> on 2001/07/26 06:34:21 UTC

Problem in retreiving a '.svg' file

Hello all,
AnyBody can help me in solving the problem

I am creating an editor (using java)  where we can draw the components(like webdraw) with the help of java , ,jazz libraries .
I want to store the file in '.svg' format for that I am using batik. 

The output of the file is ( I had drawn a RECTANGLE using my editor) 

<?xml version="1.0" encoding="ISO-8859-1"?>

<svg height="350" style="color-interpolation:sRGB; color-rendering:auto; fill:black; fill-opacity:1; font-family:&apos;Arial&apos;; font-size:12; font-style:normal; font-weight:normal; image-rendering:auto; shape-rendering:auto; stroke:black; stroke-dasharray:none; stroke-dashoffset:0; stroke-linecap:square; stroke-linejoin:miter; stroke-miterlimit:10; stroke-opacity:1; stroke-width:1; text-rendering:auto;" width="592">
  <!--Generated by the Batik Graphics2D SVG Generator-->
  <defs id="genericDefs" />
  <g>
    <defs id="defs1">
      <clipPath clipPathUnits="userSpaceOnUse" id="clipPath1">
        <path d="M0 0 L592 0 L592 314 L0 314 L0 0 Z" />
      </clipPath>
    </defs>
[    <g style="color-rendering:optimizeSpeed; fill:white; font-family:sans-serif; image-rendering:optimizeSpeed; shape-rendering:crispEdges; stroke:white; text-rendering:geometricPrecision;">
      <rect height="314" style="clip-path:url(#clipPath1); stroke:none;" width="592" x="0" y="0" />
      <rect height="238" style="clip-path:url(#clipPath1); stroke:none;" width="324" x="112" y="25" />
    </g>   ]
    <g style="color-rendering:optimizeSpeed; font-family:sans-serif; image-rendering:optimizeSpeed; shape-rendering:crispEdges; stroke-linecap:butt; stroke-width:4; text-rendering:geometricPrecision;">
      <rect height="238" style="clip-path:url(#clipPath1); fill:none;" width="324" x="112" y="25" />
    </g>
  </g>
</svg>

When I open the saved file I am unable to select the individual Component (RECTANGLE), It is selecting the full drawing area.
 
When I manually deleted the lines which is in underlined above (inside Angled Bracket) I can select the individual component in my editor,
 
 Please help me to solve the problem,I will be thankful to you,
Pls reply to senthil@exorindia.com. as early as possible

Regards
B.Senthil Kumar