Bug 156440 - File gets corrupted after converting from docx to doc (shapes with text)
Summary: File gets corrupted after converting from docx to doc (shapes with text)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx, implementationError
Depends on:
Blocks: DOC-Limitations WPSShapeTextImport-Change
  Show dependency treegraph
 
Reported: 2023-07-24 10:06 UTC by Farid Kadyamov
Modified: 2023-09-19 16:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
files (220.18 KB, application/zip)
2023-07-24 10:06 UTC, Farid Kadyamov
Details
updated files (actual) (220.18 KB, application/zip)
2023-07-24 10:10 UTC, Farid Kadyamov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Farid Kadyamov 2023-07-24 10:06:50 UTC
Created attachment 188533 [details]
files

1. Open file
2. Save as copy (doc)
3. Open doc in MS Word 2016

Actual Results:
We have corrupted file with "Show corrections" window (Screenshot in archive)

Expected Results:
File is correct
Comment 1 Farid Kadyamov 2023-07-24 10:10:59 UTC
Created attachment 188534 [details]
updated files (actual)
Comment 2 Farid Kadyamov 2023-07-24 10:12:34 UTC
I made a mistake in the names in the original files (before/after), fixed in updated files (actual)
Comment 3 Aaron 2023-08-04 11:40:10 UTC
Hi,

Are you opening the file in LO writer, saving it as a .doc copy then opening it in MS Word?

I'm not able to reproduce this bug. I've attempted the following.

1. Open a file with some text in it (I used an old document of mine) using LO writer
2. Save as a copy using the .doc extension
3. Open document in MS Word.

Result: The document opened successfully and I'm able to view the contents. Although a part of the text was truncated, I'm not able to see a "Show corrections" window.
Comment 4 Farid Kadyamov 2023-08-15 15:38:37 UTC
Hello, yes
Comment 5 Farid Kadyamov 2023-08-15 15:46:32 UTC
I have attached files in the archive
By converting before.docx -> someName.doc to LO Writer, you can get the result in MS Word 2016
Comment 6 QA Administrators 2023-08-17 03:19:29 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2023-09-19 16:45:26 UTC
Bibisected with linux-44max. This changed with commit d379d18666aa42031359ca8eb34b0021960347ae
oox: import WPS shape with text as shape with textbox

This allows having real shapes (like having rounded corners) and complex
content (like containing a table) at the same time.

WPS shapes are wrappers around drawingML markup in DOCX files, so this
only affects the DOCX import.

I don't know, if this should be called a regression as such. The DOC export filter should learn to somehow convert the shapes into something that doesn't cause the import problem in MS Word.