Bug 160809

Summary: Inserted blank page has page border of subsequent (non-blank, styled) page
Product: LibreOffice Reporter: Eyal Rozenberg <eyalroz1>
Component: Printing and PDF exportAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: medium    
Version: 24.2.2.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=160686
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103378, 108576, 118920    
Attachments: Document for which exporting triggers the bug
attachment 193837 - exported to PDF

Description Eyal Rozenberg 2024-04-24 13:47:27 UTC
Consider the soon-to-be-attached document. It has a single page, with the Left Page style. Never mind what you think of that style and its behavior - as things are defined right now, this page triggers the insertion of a blank page before it. You can see the blank page if you switch to Book View (e.g. via the bottom-of-window toolbar buttons).

Now, if I export the document to PDF, and enable "export automatically inserted blank pages" in the dialog, I get a two-page document beginning with... not quite a blank page, but rather a blank page plus a green page border, like the Left Page style has defined; other features of the Left Page style are not applied (which is intended behavior).
Comment 1 Eyal Rozenberg 2024-04-24 13:49:22 UTC
Created attachment 193837 [details]
Document for which exporting triggers the bug

Exporting this to PDF results in a PDF with the blank page having a green page order.
Comment 2 Eyal Rozenberg 2024-04-24 13:51:16 UTC
Created attachment 193838 [details]
attachment 193837 [details] - exported to PDF

Export to PDF - note green page border on first, otherwise blank page.
Comment 3 Eyal Rozenberg 2024-04-24 13:52:13 UTC
I saw this with:

Version: 24.2.0.2 (X86_64) / LibreOffice Community
Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

and also seeing this with:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ffccbf4762a9ae810bcdd21c41fccdd436e7bfc9
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US


But note that I don't get this with just _any_ PDF with Left Page style applied to the first page. Can't quite pin down what makes this one trigger the problem.