Bug 158058 - FILEOPEN RTF Next page break with different orientation imported incorrectly
Summary: FILEOPEN RTF Next page break with different orientation imported incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Opening
  Show dependency treegraph
 
Reported: 2023-11-03 21:40 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-07 19:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document from Word 2016 (43.28 KB, application/msword)
2023-11-03 21:40 UTC, Gabor Kelemen (allotropia)
Details
The example document in Word and Writer (70.04 KB, image/png)
2023-11-03 21:43 UTC, Gabor Kelemen (allotropia)
Details
The example file as docx - this looks good in Writer (18.46 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-11-03 21:43 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-11-03 21:40:54 UTC
Created attachment 190646 [details]
Example document from Word 2016

Attached RTF document contains some page breaks and these also change the page orientation.
This is opened incorrectly in Writer, the first section break that changes page size+orientation is lost. 

1. Open attached document
-> 3 pages instead of 4, the page break between page 2 and page 3 is missing.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a09b59cdbde2ab92bbbb6737337b74a7a62b17f1
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

If I convert this to DOCX in Word and open it in Writer, the page breaks, page sizes and orientations are correct, since 6.3:

https://git.libreoffice.org/core/+/d351d6badc97a6f63366fabb6568459b2cdb3819

author	Justin Luth <justin_luth@sil.org>	Fri Dec 14 12:20:49 2018 +0300
committer	Justin Luth <justin_luth@sil.org>	Tue Dec 25 05:32:31 2018 +0100

sw ooxmlimport: landscape <-> portrait ? not a continuous section
Comment 1 Gabor Kelemen (allotropia) 2023-11-03 21:43:09 UTC
Created attachment 190647 [details]
The example document in Word and Writer
Comment 2 Gabor Kelemen (allotropia) 2023-11-03 21:43:49 UTC
Created attachment 190648 [details]
The example file as docx - this looks good in Writer
Comment 3 kdub 2023-11-09 16:32:44 UTC
Hello Gabor Kelemen,

Thank you for reporting the bug. I can confirm that the bug is present in:

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 12; OS: Mac OS X 13.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Justin L 2023-12-07 19:08:43 UTC
It was only 3 pages long in OOo 3.3 (but with page 3/page 4 combined).