Bug 96579 - FILESAVE ODT->DOC/X: Figure caption badly converted in Word format because image anchoring and wrapping is changed to as-character/DML
Summary: FILESAVE ODT->DOC/X: Figure caption badly converted in Word format because im...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: interoperability
Keywords: filter:docx
: 42789 94302 135324 135706 139666 143292 147318 (view as bug list)
Depends on:
Blocks: DOCX-Images DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2015-12-18 12:25 UTC by Nicolas Saettel
Modified: 2023-06-01 01:02 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
original file opendocument (45.68 KB, application/vnd.oasis.opendocument.text)
2016-02-19 15:09 UTC, Nicolas Saettel
Details
Saved as word document (37.29 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-02-19 15:10 UTC, Nicolas Saettel
Details
pdf file rendered correctly from odt (118.21 KB, application/png)
2016-02-19 15:11 UTC, Nicolas Saettel
Details
pdf with screen shots of odt and docx (67.97 KB, application/force-download)
2016-03-07 10:59 UTC, Cor Nouws
Details
Screenshot of the example file and its docx version in current master (231.75 KB, image/png)
2019-10-30 19:03 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Saettel 2015-12-18 12:25:05 UTC
The issue is that the figure caption (in a frame) is badly converted in word: the frame is intact, but the image is wrapped inside the caption, and need reformatting to a correct display.
Thanks
Nicolas
Comment 1 Cor Nouws 2015-12-18 13:08:35 UTC
Hi Nicolas,
Thanks for the report!
Can you please attach a sample file and an image / PDF showing the expected situation?

Maybe your issue is reported already in one of those:
https://bugs.documentfoundation.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=filters%20and%20storage&component=Writer&f1=short_desc&f2=short_desc&j_top=OR&list_id=579201&product=LibreOffice&query_format=advanced&short_desc=caption%20doc&short_desc_type=allwordssubstr

Cheers - Cor
Comment 2 Nicolas Saettel 2016-02-19 15:09:20 UTC
Created attachment 122800 [details]
original file opendocument
Comment 3 Nicolas Saettel 2016-02-19 15:10:38 UTC
Created attachment 122801 [details]
Saved as word document
Comment 4 Nicolas Saettel 2016-02-19 15:11:02 UTC
Created attachment 122802 [details]
pdf file rendered correctly from odt
Comment 5 Nicolas Saettel 2016-02-19 15:11:19 UTC
Sorry for the delay, here are the files
Comment 6 Cor Nouws 2016-03-07 10:59:16 UTC
Created attachment 123369 [details]
pdf with screen shots of odt and docx

Thanks for the info Nicolas.
Comment 7 Cor Nouws 2016-03-07 11:07:53 UTC
1. The problem.. is more that the image after conversion has a different anchoring and alignment. See my test document.
So I'll update the summary of this report.

2. testing in earlier versions...

Opening the docx or trying to save the odt in docx makes LibreOffice 3.3.4 and 4.0.6.2 crash :)
4.3.7.2 has the same problem. So it's safe to assume this never worked.
Comment 8 Nicolas Saettel 2016-03-07 12:21:20 UTC
Thank you Cor for the precisions: it is indeed an anchoring problem
Comment 9 QA Administrators 2017-05-22 13:20:09 UTC Comment hidden (obsolete)
Comment 10 eisa01 2018-03-18 09:49:14 UTC
Still present

Version: 6.1.0.0.alpha0+
Build ID: 8e8dd8f320a3ff59ff8a16c1a7a867888ce80700
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-13_23:59:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 11 sdc.blanco 2019-10-30 00:14:37 UTC
Could not reproduce.  Saved attachment 122800 [details] as .docx.  Formatting and anchoring of the two figures (frames) looked the same in the .docx file as in the original .odt

Version: 6.3.3.1 (x64)
Build ID: f41f4c7f9507aeca13cb9df51f34d80e8ba30a99
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win;
Comment 12 Gabor Kelemen (allotropia) 2019-10-30 19:03:08 UTC
Created attachment 155412 [details]
Screenshot of the example file and its docx version in current master

Still present in:

Verzió: 6.4.0.0.alpha1+
Build az.: be27538c6a13d6dd9343dc0092c841cfe8c3c3e5
CPU szálak: 4; OS: Linux 4.15; Felületmegjelenítés: alapértelmezett; VCL: gtk3; 
Területi beállítások: hu-HU (hu_HU.UTF-8); Felület nyelve: hu-HU
Calc: threaded

These are image subtitles placed inside text frames with the images.
Comment 13 NISZ LibreOffice Team 2021-01-20 08:44:57 UTC
*** Bug 139666 has been marked as a duplicate of this bug. ***
Comment 14 Justin L 2023-03-15 14:09:42 UTC
related reports have this comment in them which sounds very useful:
"This is an image + text inside a frame, which is converted to a shape on DOCX export. Shape in docx/Word does not support other wrap than "as character" which in turn does not support text wrapping."
Comment 15 Justin L 2023-03-15 14:10:08 UTC
*** Bug 94302 has been marked as a duplicate of this bug. ***
Comment 16 Justin L 2023-03-15 18:29:51 UTC
*** Bug 135324 has been marked as a duplicate of this bug. ***
Comment 17 Justin L 2023-03-15 19:45:46 UTC
*** Bug 143292 has been marked as a duplicate of this bug. ***
Comment 18 Justin L 2023-03-15 20:19:34 UTC
*** Bug 135706 has been marked as a duplicate of this bug. ***
Comment 19 Justin L 2023-03-15 21:45:32 UTC
*** Bug 147318 has been marked as a duplicate of this bug. ***
Comment 20 Justin L 2023-05-26 18:55:03 UTC
*** Bug 42789 has been marked as a duplicate of this bug. ***