Bug 138043 - Writer EPUB export does not support grouped objects
Summary: Writer EPUB export does not support grouped objects
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Shapes EPUB-Export
  Show dependency treegraph
Reported: 2020-11-06 17:11 UTC by RichardKirk
Modified: 2021-05-24 20:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:

Document showing the problem (48.90 KB, application/vnd.oasis.opendocument.text)
2020-11-06 17:18 UTC, RichardKirk
Demonstration document with Frames (93.34 KB, application/vnd.oasis.opendocument.text)
2020-11-08 12:25 UTC, RichardKirk

Note You need to log in before you can comment on or make changes to this bug.
Description RichardKirk 2020-11-06 17:11:40 UTC
See test document (to be attached). A diagram made from grouped graphics elements displays correctly in Writer, and exports to PDF, but does not export to EPUB. The text appears but other stuff is lost.

It would also be good to group text with images, so I can put images in a document with labels and arrows, but I am not covering that in this bug.

I have installed and used the writer2xhtml plugin and have used it to generate the EPUB.

Steps to Reproduce:
1.Check the writer2xhtml plugin is installed
2.Open GroupedGraphics scene
3.Export to EPUB using the toolbar button (not Save to EPUB on File menu)
4.View EPUB

Actual Results:
The scene has two copies of the diagram: the first as a group of graphic elements, and the second as an included PDF as rendered out by Writer. 

The text from the group of graphic elements can be seen but the rest of the group has been lost. The PDF version looks right (this may appear as the cover image)

Expected Results:
I would expect groups of objects to keep their grouped layout. If this can only be done by rendering out the group as an image, then this is okay.

Reproducible: Always

User Profile Reset: Yes

Additional Info:
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 1 RichardKirk 2020-11-06 17:18:20 UTC
Created attachment 167067 [details]
Document showing the problem
Comment 2 RichardKirk 2020-11-08 12:25:09 UTC
Created attachment 167095 [details]
Demonstration document with Frames

New version of the demonstration document. I tried putting the graphics into a frame instead of grouping. That did not work either.
Comment 3 Dieter 2020-11-23 07:50:15 UTC
I confirm it with

Version: (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 4 David Tardon 2021-05-24 20:29:49 UTC
We have nothing to do with writer2xhtml.