Apache OpenOffice (AOO) Bugzilla – Issue 102417
SVG Export from OOO Draw completely wrong (on XP?)
Last modified: 2013-08-07 15:40:43 UTC
Steps to reproduce: - Open a new Draw document - Place a Rectangle, Ellipse, add some text to them and connect them with a Connectors line - Draw a Bezier curve with the Curve tool - Save the document The document looks like this in OOO Draw: http://img190.imageshack.us/img190/4046/testeroo.png From OOO Draw, click File / Export / SVG. Open the SVG in Firefox 3.1 - the result is as below: http://img194.imageshack.us/img194/8482/testerff.png Similar appearance is obtained in Inkscape as well. Converting the objects "To Polygen" before export only helps with getting the ellipse smooth. Problems: - Stroke width seems extremely thin - Letters are invisible (known bug? - with the "px" being dropped - and text has a style of "stroke:none;fill:none") - Objects are not positioned correctly - seems each object starts being drawn in respect to left top corner (coordinate origin) - object placement is completely lost...
Created attachment 62685 [details] The source OOO Draw file
Created attachment 62686 [details] SVG file exported from Tester.odg source file
Created attachment 62687 [details] SVG file exported from same Tester.odg source file - but on OOO 3.0 on Ubuntu - positioning seems not a problem here..
Just to conclude a bit after a diff: seems Windows OOO and Ubuntu OOO export quite different sgv's: 1) The coordinates seem completely different; compare: <path d="M 828,131 C 761,74 697,34 ... (Windows) vs. <path d="M 414,-20 C 305,-20 224,9 ... (Ubuntu) for the very same object. 2) Windows seems to insert duplicate paths; compare (again for same elements): (Windows) <g style="stroke:none;fill:rgb(153,204,255)"> <path d="M 1623,2764 L 1,2764 1,1 3244,1 3244,2764 1623,2764 Z"/> </g> <g style="stroke:rgb(0,0,0);fill:none"> <path style="fill:none" d="M 1623,2764 L 1,2764 1,1 3244,1 3244,2764 1623,2764"/> <path style="fill:none" d="M 1623,2764 L 1,2764 1,1 3244,1 3244,2764 1623,2764"/> </g> (Ubuntu) <g style="stroke:none;fill:rgb(153,204,255)"> <path d="M 4543,4003 L 7786,4003 7786,6766 4543,6766 4543,4003 Z"/> </g> <g style="stroke:rgb(0,0,0);fill:none"> <path style="fill:none" d="M 6164,6766 L 4543,6766 4543,4003 7786,4003 7786,6766 6164,6766"/> </g> 3) Windows has sometimes extra nodes, that Ubuntu export doesn't have: compare: (Windows): <g visibility="visible" id="Default"> <desc>Master slide</desc> <g style="stroke:none;fill:none"> <rect x="986" y="986" width="21620" height="28970"/> </g> </g> (Ubuntu) <g visibility="visible" id="Default"> <desc>Master slide</desc> </g>
Position in 3.0.1 is better, linewidth seems the same. Reproducible. Reassigned.
An update on this bug. Using OO.org 3.2.1 in Ubuntu Maverick (10.10). I attached two files, one ("test_inkscape.svg") created with Inkscape and another ("test_oo-draw.svg") which was the same as the previous, opened with OO.org draw and re-exported as svg. The new svg can be opened with Inkscape and Firefox just fine, but not with eog. In addition, everything is there, all elements in the image are fine and well represented all around. However any text present in the original is lost in the new file (it's not displayed in draw either). Furthermore, any test added with draw does not appear when the file is subsequently opened with Inkscape or firefox.
Created attachment 75067 [details] test case: svg file working with Firefox, Inkscape
Created attachment 75068 [details] test case: svg file modified with oo.org 3.2.1
By the way, as my previous comment implied, the bug is not present only on Windows XP, but also on Ubuntu.
No longer reproducible with server installation of "Ooo 4.0.0 – WIN7 Home Premium (64bit) English UI [AOO400m1(Build:9700) - Rev. 1457992 - Rev.1457606]" WFM/FIXED?