Printing a Landscape Portrait writer document that doesn't switch back to portrait

Windows 7 LO 4.4.3.1
Windows 8.1 LO 4.3.5.2 both are English Locale EN_CA

My 26 page document is set to have the page orientation as follows:

Page 1 to 4 are Portrait: Default Page Style
Inserted Landscape Page Style: Page 5 is Landscape
Recalled Default Page Style: Page 6 to 26 are Portrait

When Exported To PDF the document appears as formatted as per the above. And as shown in image 1.

Exported to PDF

When it is printed to a printer or printed to PDF Creator, Pages 1 to 4 are Portrait, Page 5 to 26 are Landscape, but only half the page is shown as if it is a portrait page printed on landscaped paper.

Printed to PDF

It one case when printed to PDF Creator, all pages are landscape.

When I am in the print dialog, the preview shows Pages 1 to 4 portrait, Page 5-26 in landscape.

Has anyone had a similar situation occur? Can this be repeated? Have I set up the file correctly?

Update: I was able to duplicate the error on my Win7 machine. I then opened the file with OO411 Portable and it performed correctly. I then used LO436 Portable with the error. Then used LO428 Portable and it performed correctly. Something changed along the way, but would still like to know if my setup is an anomaly. I renamed my “user” folder, but the issue persisted.

Perhaps I am not crazy. This bug sounds like it fits this situation:
https://bugs.documentfoundation.org/show_bug.cgi?id=85094
Thanks to @oweng at the libreoffice forum. http://en.libreofficeforum.org/node/10169

Would users considering to add to this thread please note that it is more than three years old now and that there were many threads about related topics opened and answered since.

I made a test in LibO 4.3.6.2 using and XP machine.

Created text document (Lorem Ipsum) of 12 pages. Pages 9 and 12 are landscape. No graphics.

Export to pdf is correct, print to pdf995 is correct. Preview is correct.

I hope this information helps. May I propose to file a bug report here: https://bugs.documentfoundation.org/
Please note that for selecting the LibO version you need to scroll the Version list up

Thanks @ROSt53. Would be curious to know if XP vs Win7 vs Win81 is what changed. I added a comment to the question above.

@Rugslug - Great you could identify the problem.

Unfortunately I have only an XP machine and I am on my way to move far away from Windows to Linux… Maybe someone else can make the tests for which you are curious about.

I made a test file with PPLPLP pages and it converted well to PDF in LO 5.2.3.3 on Windows 10.

I still have the issue. Once my file goes from portrait to landscape, the remaining pages stay in landscape. In the Print dialog, as I scroll through the pages, again, once it switches to a landscape page, all pages are displayed in landscape – even the initial pages that were in portrait. If I Export to PDF, it works great, but when printed to paper or PDF Creator, the bug persists.

Have you upgraded to the latest version yet?

Yes. 5233 and 5300beta1 on Windows 10.

You save in like docx?

It is saved in odt format.

Do all sub docs start with a page style break with associated page style?

My file is a single file.

It’s probably something in that file then. Start a new, blank document in Writer. Copy/paste the entire old file into the new one. Try again with the new file. Alternatively, try a new file with dummy text and landscape and portrait pages and see if that doesn’t work either.

I created a new file on a separate computer with Portable Apps v5.2.3.3. PPPLPLP. It results in the same issue. The preview in the print dialog switches everything to landscape; a print to a PDF file has all pages after the first 3 in landscape; Exporting to PDF results in the correct layout.

Maybe it’s the printer settings then.

The latest test was on a separate computer outside of my house with the default printer settings. I still believe it is a persistent bug since 4.2.8 as I have no problems on that version.

The latest test was on a separate computer outside of my house with the default printer settings. I still believe it is some kind of persistent bug since 4.2.8 as I have no problems on that version.