Bug 97210 - FILEOPEN DOC, DOCX drawing very ugly
Summary: FILEOPEN DOC, DOCX drawing very ugly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx
Depends on:
Blocks: DOCX-Textbox DOC DOCX-Grouped-Shapes
  Show dependency treegraph
 
Reported: 2016-01-17 13:12 UTC by Pierre C
Modified: 2023-06-08 18:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Original DOC (114.50 KB, application/vnd.ms-word)
2016-01-17 13:12 UTC, Pierre C
Details
DOC saved as DOCX file with Word 2007 (89.64 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-01-17 13:12 UTC, Pierre C
Details
What it should be (132.03 KB, application/x-download)
2016-01-17 13:14 UTC, Pierre C
Details
Minimized test document in Word and Writer side by side (80.60 KB, image/png)
2020-09-08 14:28 UTC, NISZ LibreOffice Team
Details
Minimized test document in docx format (14.64 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-09-08 14:29 UTC, NISZ LibreOffice Team
Details
How the original docx and the reduced one look in current Writer (230.88 KB, image/png)
2021-03-18 16:55 UTC, Gabor Kelemen (allotropia)
Details
How the original docx and the Word-made PDF look (169.98 KB, image/png)
2021-03-18 16:57 UTC, Gabor Kelemen (allotropia)
Details
DOC saved as DOCX with Word 2016 (284.15 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-01-10 14:34 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre C 2016-01-17 13:12:04 UTC
Created attachment 122028 [details]
Original DOC

When importing doc PB LO.doc, drawing is unreadable. It seems that many textboxes have a 0 size. So text is vertical instead of being horizontal.
The text boxes seem not to be at the right place too

If I save the DOC file to DOCX format, using Word 2007. and open it with LO. The result is quite better, but a big black rectangle appears
Comment 1 Pierre C 2016-01-17 13:12:44 UTC
Created attachment 122029 [details]
DOC saved as DOCX file with Word 2007
Comment 2 Pierre C 2016-01-17 13:14:20 UTC
Created attachment 122030 [details]
What it should be
Comment 3 Buovjaga 2016-01-25 11:05:24 UTC
Confirmed.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: 6b65a0e83c4798f117be61af91dbaebdc85e94b7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-21_03:41:08
Locale: fi-FI (fi_FI)

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 4 Telesto 2016-12-05 21:27:59 UTC
Confirming with:
Version: 5.4.0.0.alpha0+
Build ID: 33f5bc54aaa7fe7aa9335726e30f9c349155e04d
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-12-01_23:21:05
Locale: nl-NL (nl_NL); Calc: CL
Comment 5 QA Administrators 2017-12-10 16:39:44 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-11 03:39:11 UTC Comment hidden (obsolete)
Comment 7 Pierre C 2019-12-11 13:31:35 UTC
Problem still exists With LO 6..3.4.2
Comment 8 NISZ LibreOffice Team 2020-09-08 14:18:40 UTC
This contains some grouped shapes, that has black background color set in Word, but seemingly ignored by it, but not ignored by Writer.

Also the grouped shapes are somewhat distorted and misplaced.
Comment 9 NISZ LibreOffice Team 2020-09-08 14:28:32 UTC
Created attachment 165273 [details]
Minimized test document in Word and Writer side by side

This has a lot fewer shapes grouped, so hopefully it's gonna be easier to debug the backgrounds blackness.
Comment 10 NISZ LibreOffice Team 2020-09-08 14:29:01 UTC
Created attachment 165274 [details]
Minimized test document in docx format
Comment 11 Gabor Kelemen (allotropia) 2021-03-18 16:55:47 UTC
Created attachment 170557 [details]
How the original docx and the reduced one look in current Writer

The complete blackness of the docx seems to be gone since:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=767ec919f09e5ed69149ed27bd46a6bb67556863

author	Regényi Balázs <regenyi.balazs@nisz.hu>	2020-09-30 15:19:36 +0200
committer	Michael Stahl <michael.stahl@cib.de>	2020-10-07 10:14:26 +0200

tdf#105875 DOCX VML shape import: fix missing rotation

Now it is clearly visible that the grouped drawing objects positioning is a bit off compared to Word.
Comment 12 Gabor Kelemen (allotropia) 2021-03-18 16:57:20 UTC
Created attachment 170558 [details]
How the original docx and the Word-made PDF look

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 83bee81c5228e8950c3c9da46e050936c19858e7
CPU threads: 16; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: hu-HU
Calc: threaded
Comment 13 Timur 2022-01-10 14:34:09 UTC
Created attachment 177431 [details]
DOC saved as DOCX with Word 2016

DOC and DOCX are different and they would need 2 bugs. But let's keep here until something changes. 
DOC is still awful. Attached 2007 DOCX as as shown, almost good. DOCX resaved in MSO 2016 opens wrong and worse than 2007.
Comment 14 Justin L 2023-06-08 18:02:45 UTC
(In reply to Timur from comment #13)
> Created attachment 177431 [details]
>  DOCX resaved in MSO 2016 opens wrong and worse than 2007.
I'm confused. When I open this last one, it looks identical to the supposedly good PDF output from comment 2.

MSO 2007 had some really crazy behaviour. I wouldn't really trust anything that came out of that.

repro 7.6 that DOC and 2007 DOCX look very ugly.