Hello !
I have a problem when converting WMF
files (generated by PPT 2000) to SVG using org.apache.batik.transcoder.wmf.tosvg package (i'm using
version 1.5 beta 4b, and the result is the same with the last CVS version of the
package classes) : in the resulting SVG file, the bounding box
is much more larger than the real bounding box of the initial WMF
graphics.
This problem involves the two following classes :
WMFPainter & RecordStore. I think it comes from the following :
I found a simple solution to fix this (is it all
right, or did I completely misunderstood something ?) :
case
WMFConstants.META_SETWINDOWEXT:
/*
change sepVpW and setVpH by sepVpWext and setVpHext
:
* * In CurrentStore, two new infos are added: VpWext and VpHext : * the scale is then identical in X and Y coordinates and don't * take into account the External dimension */ currentStore.setVpWext( vpW = mr.ElementAt( 0 ).intValue()); currentStore.setVpHext( vpH = mr.ElementAt( 1 ).intValue()); scaleX = (double)w / vpW; scaleY = (double)h / vpH; scaleX = Math.max(scaleX,scaleY); scaleY = scaleX; Hervé Girod
|