Bug 150255 - FILEOPEN: DOCX grouped drawing objects / shapes from Microsoft Word are misplaced on the page
Summary: FILEOPEN: DOCX grouped drawing objects / shapes from Microsoft Word are mispl...
Status: RESOLVED DUPLICATE of bug 135254
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Grouped-Shapes
  Show dependency treegraph
 
Reported: 2022-08-03 22:14 UTC by João Paulo
Modified: 2023-03-09 21:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Original document created with Microsoft Word (87.92 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-08-03 22:15 UTC, João Paulo
Details
PDF created with Word, based on the original document (52.19 KB, application/pdf)
2022-08-03 22:15 UTC, João Paulo
Details
PDF created with LibreOffice Writer, based on the original document (35.01 KB, application/pdf)
2022-08-03 22:16 UTC, João Paulo
Details
The fixed document created with Word (91.62 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-08-03 22:19 UTC, João Paulo
Details
The example file in Word 2016 and Writer (186.36 KB, image/png)
2023-03-09 21:57 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description João Paulo 2022-08-03 22:14:15 UTC
Description:
A document with grouped shapes / drawings created with Microsoft Word has the drawings / shapes incorrectly positioned when opened with LibreOffice Writer.

The document has 12 shapes / drawings grouped together, the uppermost drawings should be on top of the page and the downmost drawings should be on the bottom on the page (see "PDF created with Word.pdf"), but LibreOffice Writer puts them almost an inch from the top and from the bottom (see "PDF created with LibreOffice Writer").

Steps to Reproduce:
1. Open the "PDF created with Word.pdf" to see how the Word document is supposed to look like.
2. Open the "Word original document.docx" with LibreOffice Writer.
2. Verify the shapes / drawings positions differ from the PDF generated with Word.

Actual Results:
The "PDF created with LibreOffice Writer.pdf" shows how the shapes / drawings appear inside LibreOffice Writer.

Expected Results:
LibreOffice should show the shapes / drawings as in "PDF created with Word.pdf".


Reproducible: Always


User Profile Reset: No



Additional Info:
I can fix this by using Microsoft Word to ungroup the shapes / drawings in the original document and saving, LibreOffice Writer opens the document and shows the shapes in the positions they should be (see "Word fixed document.docx").

However, not everyone has Microsoft Word to edit (or fix) the document, so this workaround is less than ideal.
Comment 1 João Paulo 2022-08-03 22:15:04 UTC
Created attachment 181576 [details]
Original document created with Microsoft Word
Comment 2 João Paulo 2022-08-03 22:15:53 UTC
Created attachment 181577 [details]
PDF created with Word, based on the original document
Comment 3 João Paulo 2022-08-03 22:16:37 UTC
Created attachment 181578 [details]
PDF created with LibreOffice Writer, based on the original document
Comment 4 João Paulo 2022-08-03 22:19:30 UTC
Created attachment 181579 [details]
The fixed document created with Word

This document was fixed after ungrouping all the shapes (the uppermost and the downmost), then regrouping only the downmost shapes to put them on the correct place.
Comment 5 João Paulo 2022-08-03 22:27:56 UTC
Sorry, I forgot to say the version I am using:

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: pt-BR (pt_BR); UI: pt-BR
Calc: threaded Jumbo
Comment 6 Dieter 2022-08-11 14:21:02 UTC
I confirm it with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Don't know why, but as far as I can see, height of grouped shapes in LO writer is just 27,95cm (in Word it is 29,7). Just change height to 29,7 and you have the expected result.
Comment 7 João Paulo 2022-08-24 20:17:34 UTC
@Dieter, what is the page size when you open the original document created with Microsoft Word?  In my computer, it opens as an A4 (21,0cm x 29,70cm).

Maybe Word is stretching the paper size **and** the grouped shapes to be compatible with the default paper size in Brazil, which is A4.
Comment 8 Dieter 2022-09-22 08:05:34 UTC
(In reply to João Paulo from comment #7)
> @Dieter, what is the page size when you open the original document created
> with Microsoft Word?  In my computer, it opens as an A4 (21,0cm x 29,70cm).

Page size is 21,0 x 29,7 in word and writer. Height of grouped shapes is 27,95 in writer. I'm not so familiar with word, but it seems to me, that shapes are not grouped in Word at all. 

So perhaps duplicate of bug 136328. But I can't assess this finally.
Comment 9 Gabor Kelemen (allotropia) 2023-03-09 21:57:19 UTC
Created attachment 185875 [details]
The example file in Word 2016 and Writer

The height of the grouped shape is 100% of the page, 29.7 cm in Word, which becomes 27.95 cm in Writer.

This is the same symptom as in bug 135254
Comment 10 Gabor Kelemen (allotropia) 2023-03-09 21:57:30 UTC

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