Bug 82627 - FILEOPEN DOCX: Text Not Rotated in Text Boxes with Rotation
Summary: FILEOPEN DOCX: Text Not Rotated in Text Boxes with Rotation
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:docx
: 98991 121515 (view as bug list)
Depends on:
Blocks: DOCX-Textbox docx-aggressive-competitors
  Show dependency treegraph
 
Reported: 2014-08-14 17:30 UTC by Plamen
Modified: 2020-02-27 12:38 UTC (History)
14 users (show)

See Also:
Crash report or crash signature:


Attachments
n archive containing a document with paragraph text and rotated text box and a snapshot of MS word rendering (38.60 KB, application/x-zip-compressed)
2014-08-14 17:30 UTC, Plamen
Details
Simple example of rotated text boxes (17.30 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-12-06 22:02 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plamen 2014-08-14 17:30:08 UTC
Created attachment 104628 [details]
n archive containing a document with paragraph text and rotated text box and a snapshot of MS word rendering

Problem description: 
When a MS Word document created with:
MS Office Professional Plus 2010
Version: 14.0.7128.5000 (64-bit)

contains a rotated transparent text box with no border(in MS word the rotated text appears on top of the paragraphs), opening the document in Writer shows it as non-rotated frame with white background hiding the paragraph text bellow.

Steps to reproduce:
1. Open the attached document in MS Word and in Writer

Current behavior:
The Text Box text is rendered in a non-rotated frame with white background hiding the paragraph text below.

Expected behavior:
The Text Box should be transparent and rotated and only the Text Box's text should overlap the paragraph text below.

Operating System: Windows 7
Version: 4.3.0.4 release
Comment 1 Plamen 2014-08-14 17:33:17 UTC Comment hidden (obsolete)
Comment 2 Adolfo Jayme 2014-08-15 01:23:53 UTC
Thank you for yur bug report.
Comment 3 QA Administrators 2015-09-04 02:49:35 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2015-11-30 13:45:16 UTC
Still confirmed.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: a7c3a2a9be83686657c06f37d521f9f6d2004ddd
Threads 4; Ver: Windows 6.1; Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2015-11-28_04:39:18
Locale: fi-FI (fi_FI)
Comment 5 Robinson Tryon (qubit) 2015-12-09 18:47:52 UTC Comment hidden (obsolete)
Comment 6 m.a.riosv 2016-12-03 16:14:44 UTC
*** Bug 104353 has been marked as a duplicate of this bug. ***
Comment 7 Luke 2016-12-06 22:02:08 UTC
Created attachment 129359 [details]
Simple example of rotated text boxes

Miklos,
You've done much of the work on the Text Box implementation. Is this something you'd be interested in looking at? 

We need to read the OOXML ‘Do not rotate Text’ option. When it's set, use the old system. When it's not set, we need to rotate the text with the box like we do with all native Text Boxes.
Comment 8 Luke 2016-12-06 23:46:28 UTC
*** Bug 98991 has been marked as a duplicate of this bug. ***
Comment 9 Luke 2017-03-11 20:55:45 UTC
*** Bug 86529 has been marked as a duplicate of this bug. ***
Comment 10 QA Administrators 2018-08-16 02:37:27 UTC Comment hidden (obsolete)
Comment 11 Alex 2018-08-19 20:26:16 UTC
Still confirmed in Win10 Lo 6.1.0.3. 

None of the text boxes in the sample document are rotated like the other boxes are.
Comment 12 Luke 2019-01-23 20:42:39 UTC Comment hidden (obsolete)
Comment 13 Xisco Faulí 2019-10-17 12:52:29 UTC
*** Bug 121515 has been marked as a duplicate of this bug. ***
Comment 14 Aron Budea 2019-11-28 03:46:24 UTC
Some details on this from Miklos.
There are two kinds of text containers in shape: Writer or editeng. The Writer one can contain complex content, but can't be rotated, while the editeng one can be rotated.

Word doesn't have this kind of distinction, and currently DOCX import creates Writer text in a shape. This can be confirmed by turning on formatting marks: if end-of-paragraph markers are shown in side the text box, it's Writer text, if not then it's editeng-based.

A potentially quick and dirty way to fix this would be to switch the DOCX import to use editeng-based text containers in shapes. Providing a real fix will be more difficult.
Comment 15 Dieter 2019-12-09 06:59:35 UTC
*** Bug 129263 has been marked as a duplicate of this bug. ***