Bug 35985 - Changing imported RTF tilts orientation of text
Summary: Changing imported RTF tilts orientation of text
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.3.2 release
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: Miklos Vajna
Depends on:
Reported: 2011-04-05 03:59 UTC by WilfriedRJ
Modified: 2011-07-28 08:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Original file as exported from the application (15.38 KB, text/richtext)
2011-04-05 03:59 UTC, WilfriedRJ
LibO rtf after changes in the text (78.61 KB, text/richtext)
2011-04-05 04:00 UTC, WilfriedRJ
OO rtf without any changes to the text (42.22 KB, text/richtext)
2011-04-05 04:01 UTC, WilfriedRJ

Note You need to log in before you can comment on or make changes to this bug.
Description WilfriedRJ 2011-04-05 03:59:15 UTC
Created attachment 45271 [details]
Original file as exported from the application

For 10 years our company has worked with a custom application, based on W2K, Delphi 5 and MS Word 2000. Documents are being generated as RTF tables and directly printed or sent by fax or email or exported - if needed - to Word 2000. We are now changing to Windows 7 and LibO.

When such an RTF document (original_file.rtf) is opened and closed in LibO, everything is fine. But as soon as you change something and then save it, the orientation of the text is tilted by 90 degrees counterclockwise - 2 pages turn into 35 (LibO.rtf).

The same text works fine after changes with Word 2000 and Word 2010 as well as LibO odt. OpenOffice doesn't change the font orientation but looses font info (Wingdings becomes Arial: bullets and checkboxes in the text are lost - oo_330_save_only.rtf), even if you don't change anything, the mere saving of the text suffices.
Comment 1 WilfriedRJ 2011-04-05 04:00:09 UTC
Created attachment 45272 [details]
LibO rtf after changes in the text
Comment 2 WilfriedRJ 2011-04-05 04:01:07 UTC
Created attachment 45273 [details]
OO rtf without any changes to the text
Comment 3 Jan Holesovsky 2011-04-14 04:30:06 UTC
Miklos: Can you please have a look? :-)
Comment 4 Miklos Vajna 2011-04-14 15:08:33 UTC
I can reproduce this on LO master.

Just for the reference, the "OOo" means OOo 3.2.1 or older here, IOW the old RTF filter.
Comment 5 Miklos Vajna 2011-04-14 15:55:56 UTC
Minimal reproducer for the "cell orientation part is wrong" part:

{\pard\trowd\intbl \sa0 \plain foobar
Comment 6 Miklos Vajna 2011-04-14 16:18:11 UTC
I wonder if this is an import bug: if you save the minimal reproducer as doc, even LO won't be able to open it, saying "This is not a WinWord97 file."

Cedric, what's your opinion?

Comment 7 Rainer Bielefeld Retired 2011-06-12 00:23:54 UTC
[Reproducible] with "LibreOffice 3.4.0  – WIN7  Home Premium  (64bit) German UI [OOO340m1 (Build:12)]" and Miklos' "Minimum reproducer"

When I create minimumreproducer.rtf using simple text editor I see text hin page header left to right 0!, any modification > save > close > reopen will rotate text in header 90° counter clockwise. The rotation also is visible with MS WORD Viewer.

The rotation problem does not appear with  minimumreproducer.rtf and OOo 3.1.1. The export result document source code looks looks very different from the one created ith LibO.

I modified Status to Assigned due to facts.
Comment 8 Miklos Vajna 2011-07-28 08:01:22 UTC
This is fixed in my GSoC repo:


I'll merge that repo to master before 2011-08-15 and you'll have this feature
if you enable experimental features. (Later hopefully it'll be the default, but
there is no decision about that yet.)