Details
-
Bug
-
Status: Resolved
-
Resolution: Incomplete
-
1.8
-
None
-
None
-
Operating System: Windows XP
Platform: PC
Description
It seems not possible to convert directly WMF files to SVG Documents. An
Exception is explicitely raised in WMFTranscoder if trying to do so. Further,
if trying to removed this Exception raising, the resulting SVG Document has no
content, appart for the svg root Element.
The cause of this problem seems in fact to be the getRoot() method in the
SVGGraphics2D class : the code is simply :
public Element getRoot()
which calls in the same class :
public Element getRoot(Element svgRoot)
The DOMTreemanager creates a new svg Element in the tree, even if it already
exists. I think the code in SVGGraphics2D should be something like that :
public Element getRoot(){
Document doc = getDOMFactory();
Element elt = doc.getDocumentElement();
if (elt.getTagName().equals(SVGConstants.SVG_SVG_TAG)) return getRoot(elt);
else
return getRoot(null);
}
Attachments
Attachments
Issue Links
- is depended upon by
-
BATIK-577 Enhancements in the wmf transcoder package
- Resolved