Bug 92678 - FILESAVE: export from Draw to SVG does not save text on objects
Summary: FILESAVE: export from Draw to SVG does not save text on objects
Status: RESOLVED DUPLICATE of bug 90284
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.1.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Save SVG-Open
  Show dependency treegraph
 
Reported: 2015-07-10 18:03 UTC by itsGord
Modified: 2021-04-10 15:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice Draw file (168.98 KB, application/vnd.oasis.opendocument.graphics)
2015-07-10 18:03 UTC, itsGord
Details
SVG file (371.08 KB, image/svg+xml)
2015-07-10 18:04 UTC, itsGord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description itsGord 2015-07-10 18:03:24 UTC
Created attachment 117175 [details]
LibreOffice Draw file

I created a simple drawing in LibreOffice Draw 4.1.4.2 using text boxes and objects from Draw's gallery, then added text to some of the gallery objects. I then exported the drawing as SVG. The text in the standalone text boxes was in the .svg file, but the text on the objects was not. Viewing the .svg file with a text editor confirms that the text is not in the file.

I tested exporting the same .odg document to PNG and PDF and both included all text.

The text does not exceed the boundaries of the objects and the text has not been rotated.

IMHO this is a major problem in that only vector art produces good quality at varied sizes without creating huge files.

Attaching the .odg document and the exported .svg file.
Comment 1 itsGord 2015-07-10 18:04:15 UTC
Created attachment 117176 [details]
SVG file
Comment 2 MM 2015-07-10 19:03:16 UTC
Might be a duplicate of bug 32248
Comment 3 itsGord 2015-07-10 19:24:47 UTC
#32248 pertains to using Draw to open a SVG file and not seeing text that is in the SVG file that is visible in other programs. The OP of #32248 created the file with Inkscape.

#92678 pertains to exporting a diagram from Draw as a SVG file, and the resulting SVG file not containing the text at all. The text is not visible in other viewers either, because it isn't even there.

I suppose it could be related, but on the surface I'm not seeing it.

BTW I should have mentioned that the problem still exists on 4.4.4.3 on another machine (Win 7 Pro SP1 32 bit).
Comment 4 MM 2015-07-11 12:31:33 UTC
Yep, bug 32248 might be the wrong duplicate. I knew i'd seen this bug before, so.
Looks like a dup from bug 81561 (and bug 90284).
Comment 5 Jacques Guilleron 2015-07-11 14:20:50 UTC
Hi,

I reproduce with 
LO 5.0.0.2 Build ID: a26d58f11b99b6aeddf7f7884effea188cc6e512
& Windows 7 Home Premium
As workaround:
This can be done by using Convert to Metafile each image with text. (puzzle pieces for example)
The resulting svg will can be opened in Draw by using Insert > Image, but give an image without text if you open it directly.
Inkscape, Firefox, IE can open correctly this svg file.
Comment 6 itsGord 2015-07-11 14:26:27 UTC
bug 90284 does sound very similar. Don't know how I missed that one. I just downloaded the ODG file from bug 90284, opened in Draw 4.1.4.2, and exported it as SVG, and the SVG has all the text except "Send regdomain info to kernel via netlink" (the same text as the OP of bug 90284 said was missing).

I did see bug 81561, but didn't pursue it because of the extra layer of complexity added by the embedded spreadsheet. But I can confirm this one on 4.1.4.2 as well.
Comment 7 itsGord 2015-07-11 14:50:27 UTC
Tried the workaround in comment 5. Convert to Metafile does preserve the text. Thanks! The text for any converted objects is now visible in the SVG when opened with Inkscape. It's also visible in Draw when Insert Image is used. But in my case, if I open the SVG directly with Draw I just get a black page.
Comment 8 Robinson Tryon (qubit) 2015-12-09 18:52:40 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2017-01-03 19:42:08 UTC Comment hidden (obsolete)
Comment 10 Roman Kuznetsov 2018-06-18 20:53:06 UTC
still repro in LibreOffice 6.1 beta 2
Comment 11 Alex 2018-08-26 10:31:42 UTC
Reproduced in Ubuntu 18.04 LO Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
Comment 12 QA Administrators 2019-09-02 09:19:36 UTC Comment hidden (obsolete)
Comment 13 xordevoreaux 2021-04-10 13:20:10 UTC
Still a bug in 

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 807d059d99e7b99fe45a712428befa17ffa44858
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 14 xordevoreaux 2021-04-10 13:30:31 UTC
Similar to bug https://bugs.documentfoundation.org/show_bug.cgi?id=99769
Comment 15 V Stuart Foote 2021-04-10 15:24:32 UTC

*** This bug has been marked as a duplicate of bug 90284 ***