Bug 89887 - FileOpen: Drawing is not visible in 2007 DOCX (opens OK if resaved in MSO)
Summary: FileOpen: Drawing is not visible in 2007 DOCX (opens OK if resaved in MSO)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: interoperability
Keywords: filter:docx, filter:ooxml
Depends on:
Blocks: DOCX-Canvas-Shape
  Show dependency treegraph
 
Reported: 2015-03-08 16:35 UTC by Sergey Kozyr
Modified: 2023-11-09 17:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample DOCX file with drawing (34.04 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-03-08 16:35 UTC, Sergey Kozyr
Details
Actual LibreOffice behaviour (4.63 KB, image/png)
2015-03-08 16:39 UTC, Sergey Kozyr
Details
Expected behaviour (51.41 KB, image/png)
2015-03-08 16:40 UTC, Sergey Kozyr
Details
Screenshot from daily build (26.90 KB, image/png)
2023-11-09 17:37 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Kozyr 2015-03-08 16:35:52 UTC
Created attachment 113976 [details]
Sample DOCX file with drawing

I have a DOCX file with <w:drawing> element. This drawing is shown in Microsoft Word. But it's missing in LibreOffice.
See attached "drawing_sample.docx"
Comment 1 Sergey Kozyr 2015-03-08 16:39:41 UTC
Created attachment 113977 [details]
Actual LibreOffice behaviour
Comment 2 Sergey Kozyr 2015-03-08 16:40:19 UTC
Created attachment 113978 [details]
Expected behaviour
Comment 3 V Stuart Foote 2015-03-08 17:45:26 UTC
Confirming on Windows and Linux with 4.4.1.2 as well as with recent builds of master.

The <w:drawing> element is lines 55 -> 4417 in the document.xml of the OOXML .docx archive. Drawing contains an inline graphic structured as a lockedCanvas. 

It all looks to be reasonably opened and closed in the XML tags.

The OOXML documnet is well formed in Word 2007 and Word Office 365. But on opening into LibreOffice 4.4.1 the graphic is not being rendered into the document.
Comment 4 Robinson Tryon (qubit) 2015-12-14 06:04:49 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-12-04 09:53:51 UTC Comment hidden (obsolete)
Comment 6 V Stuart Foote 2017-12-04 18:26:32 UTC
Issue remains on current builds of 6.1.0alpha0 master.
Version: 6.1.0.0.alpha0+ (x64)
Build ID: 6b3cc69fd2b2de5ace68f2739eb383267d66f76f
CPU threads: 8; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2017-12-01_01:36:58
Locale: en-US (en_US); Calc: group threaded
Comment 7 V Stuart Foote 2017-12-04 18:31:59 UTC
see details for the ooxml Drawing lockedCanvas class:

https://msdn.microsoft.com/en-us/library/documentformat.openxml.drawing.lockedcanvas.lockedcanvas.aspx
Comment 8 QA Administrators 2018-12-05 03:49:05 UTC Comment hidden (obsolete)
Comment 9 Sergey Kozyr 2018-12-05 08:54:15 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2019-12-06 04:18:55 UTC Comment hidden (obsolete)
Comment 11 Sergey Kozyr 2019-12-06 08:47:33 UTC
Bug is still present with LibreOffice downloaded from https://www.libreoffice.org/download/ . Version details:

Version: 6.3.3.2 (x64)
Build ID: a64200df03143b798afd1ec74a12ab50359878ed
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 12 Timur 2019-12-09 10:53:45 UTC
Repro for attached .docx that is 2007 version. If resaved in MSO, opens fine. Test LO 6.5+.
Comment 13 Svatopluk Vít 2021-03-01 09:13:02 UTC
This bug is still present. I can also confirm that after opening the file in MSO 2016 and save (MSO will then upgrade it to latest DOCX version), I can open it in LO without any problems.

Version: 7.1.1.1 / LibreOffice Community
Build ID: 575c5867c4cc13d7ae78f9ce39a54a52ed38c769
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded
Comment 14 QA Administrators 2023-07-27 03:15:48 UTC Comment hidden (obsolete)
Comment 15 Regina Henschel 2023-11-09 17:34:36 UTC
There are some problems with font size an word wrap, but the diagram is there in Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ef3d937415185ef66e32dd3043783eddcd03db5
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded
Comment 16 Regina Henschel 2023-11-09 17:37:14 UTC
Created attachment 190772 [details]
Screenshot from daily build