Issue 102417 - SVG Export from OOO Draw completely wrong (on XP?)
Summary: SVG Export from OOO Draw completely wrong (on XP?)
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: OOO310m11
Hardware: Unknown Windows XP
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 15:45 UTC by sdaau
Modified: 2013-08-07 15:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The source OOO Draw file (9.21 KB, application/vnd.oasis.opendocument.graphics)
2009-06-01 15:46 UTC, sdaau
no flags Details
SVG file exported from Tester.odg source file (4.82 KB, text/xml)
2009-06-01 15:48 UTC, sdaau
no flags Details
SVG file exported from same Tester.odg source file - but on OOO 3.0 on Ubuntu - positioning seems not a problem here.. (8.69 KB, text/xml)
2009-06-01 16:00 UTC, sdaau
no flags Details
test case: svg file working with Firefox, Inkscape (85.52 KB, image/svg)
2010-11-19 20:44 UTC, feranick
no flags Details
test case: svg file modified with oo.org 3.2.1 (906.35 KB, image/svg)
2010-11-19 20:45 UTC, feranick
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sdaau 2009-06-01 15:45:31 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...
Comment 1 sdaau 2009-06-01 15:46:31 UTC
Created attachment 62685 [details]
The source OOO Draw file
Comment 2 sdaau 2009-06-01 15:48:03 UTC
Created attachment 62686 [details]
SVG file exported from Tester.odg source file
Comment 3 sdaau 2009-06-01 16:00:10 UTC
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..
Comment 4 sdaau 2009-06-01 16:18:18 UTC
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>




Comment 5 wolframgarten 2009-06-02 08:10:23 UTC
Position in 3.0.1 is better, linewidth seems the same. Reproducible. Reassigned.
Comment 6 feranick 2010-11-19 20:42:51 UTC
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.
Comment 7 feranick 2010-11-19 20:44:53 UTC
Created attachment 75067 [details]
test case: svg file working with Firefox, Inkscape
Comment 8 feranick 2010-11-19 20:45:37 UTC
Created attachment 75068 [details]
test case: svg file modified with oo.org 3.2.1
Comment 9 feranick 2010-11-19 20:46:28 UTC
By the way, as my previous comment implied, the bug is not present only on
Windows XP, but also on Ubuntu.
Comment 10 Rainer Bielefeld 2013-04-22 09:28:28 UTC
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?