Apache OpenOffice (AOO) Bugzilla – Issue 116617
Export SWF - line width error
Last modified: 2013-08-07 15:40:43 UTC
Summary: When exporting swf (Macromedia Flash) files from the OO Draw application, continuous lines with small finite widths are not displayed by the Flash client at the preset width, but are bulked out with shadow on both sides and become much wider. Steps: # open a new OO Draw document # set page width to 3,000 mm # draw several circles approx 30 mm diameter using default style # draw several "straight connector" lines between the gluepoints on circles using the default width (0.00 mm or 1 pixel) # create a new style # edit Line tab of this style, chose line width 2.5 mm # select the straight connector lines and apply this new style to them # save page as odg, then export the page using Menu File > Export ... > Macromedia Flash(SWF) # open this SWF file using Adobe Flash Player plugin # zoom in by using context menu to see the tiny features just drawn Result: the straight connector lines are much wider than in the Draw application. Observations: The styles.xml file calls this line "solid" but the interface calls it "continuous". Care was taken to turn off any possible shadowing. The remaining tabs remained thus: # Connector: standard connector # Transparency: no transparency # Shadowing: properties box "use shadow" UNchecked Experimentation shows that this bug does not seem to occur in the swf export if: # the line is changed from continuous to another style, for example 2.50 mm, dashed, 25 per cent transparency. # the line is reverted to 0.00 width The impact of the problem can be slightly reduced if: # the continuous line is given a degree of transparency, for example 25 per cent; in this case the Flash display contains a fairly solid central line with fainter shadows both sides that partly obscure other elements on the drawing. Attempts to work around the problem by editing the style sheet, deleting any other styles that might interfere with line width, did not yield a solution. This problem was found using both OO 3.2.1 in Windows 7 and 00 3.1.1 in Windows XP. The behaviour is the same in both.
Created attachment 75646 [details] OpenOffice Draw file showing correct line widths (green)
Created attachment 75647 [details] Macromedia Flash file as example of error (thick green lines)
Created attachment 75648 [details] SWF file after line is given 25-per-cent transparency
Reproducible. Reassigned.