Bug 129618 - Rotated text frames do not import correctly from MS Word 2003 (".doc") format. (NOT openGL related)
Summary: Rotated text frames do not import correctly from MS Word 2003 (".doc") format...
Status: RESOLVED DUPLICATE of bug 37828
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks:
 
Reported: 2019-12-25 18:00 UTC by tfabris
Modified: 2020-02-27 12:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Box Rotation Problem Example (528.16 KB, application/vnd.oasis.opendocument.text)
2019-12-26 18:10 UTC, tfabris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tfabris 2019-12-25 18:00:45 UTC
Text boxes aka text frames, when created correctly in MS W
Comment 1 tfabris 2019-12-25 18:11:50 UTC
I have many files created in MS Word 2003, some of which contain floating text boxes which have been rotated 90 degrees. I am trying to edit these in LibreOffice.

When these documents are opened in LibreOffice, the following things are wrong with the text boxes:

- Their location on the document page has been shifted, the text boxes are no longer in the exact same place on the screen, though they are the expected size and shape.
- Their internal text is no longer in the correct rotation, the letters within the text box are rotated 180 degrees instead of the expected 90 degrees.

If I correct the text boxes in LibreOffice, fixing the rotation, text, and placement, then when I "Save As" to MS Word ".doc" format, the files open correctly in MS Word 2003 or later and the text boxes look correct. So I suspect the problem might only be in the import code rather than the export code.

NOTE: This is NOT related to OpenGL because that is turned off on my installation of LibreOffice.
Comment 2 Xisco Faulí 2019-12-26 12:03:30 UTC Comment hidden (obsolete)
Comment 3 Timur 2019-12-26 12:16:00 UTC
This may likely be a duplicate of existing bug, please search.
Comment 4 tfabris 2019-12-26 18:10:27 UTC
Created attachment 156788 [details]
Box Rotation Problem Example
Comment 5 tfabris 2019-12-26 18:11:12 UTC
@timur - Thanks! I did perform a search, and the only results I found were the ones about an OpenGL rendering problem. This is not related to those bugs, since I have OpenGL turned off in the settings.

@xiscofauli - Thank you! I am attaching the example document requested. It is a LibreOffice file. You must open the file in LibreOffice, see that it looks OK, then "Save As" a Word 2003 ".doc" file. 

The resulting saved ".doc" file will look correct if opened in Word 2003 but will look incorrect if re-opened in LibreOffice.

This may seem like a minor issue, but it prevents me from using LibreOffice in a large-scale workflow which involves running macros on hundreds of documents and then re-saving those documents. The macro works, but the documents' rotated text boxes get mangled in the process.
Comment 6 QA Administrators 2019-12-27 03:28:45 UTC Comment hidden (obsolete)
Comment 7 Alex Thurgood 2019-12-27 08:56:21 UTC
Mixed results here with Word 16.32 (19120802)

I opened the ODT file in LODev master. Exported to DOC 2003.

The opened in Word for macOS (latest available version).

In Page View, the loaded DOC 2003 file displays only a small letter "w" at the top center of the page. Nothing else is displayed.

In Web Page view, I see the various text boxes and text. I can also confirm that the left most upper text box has the text rotated at 180°.

Confirming, but situation is even worse in Page View. To all intents and purposes, most users would be under the impression that the document has lost its content.

Make a single letter change in one of the text boxes and then save.

Open the newly saved DOC file in LODev
Version: 6.5.0.0.alpha0+
Build ID: 0cd3b7926cafc01d06b589124215e9cb7c148f19
CPU threads: 4; OS: Mac OS X 10.15.2; UI render: default; VCL: osx; 
Locale: fr-FR (fr_FR.UTF-8); UI-Language: en-US
Calc: threaded


Confirming that text in leftmost textbox now also displayed upside down.
Comment 8 eisa01 2020-02-15 23:54:00 UTC
Ok, so this is strange

First of all, no difference whether you export from Windows or macOS

Second of all, the 97-2003.doc document is rendered correctly in Microsoft Word 2007 on Win10, but latest Word on Mac does not

So, who has the bug? LO and new Word versions?
Comment 9 Timur 2020-02-27 12:25:01 UTC
Looks like a duplicate of older and much better bug with all angles.

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