Description: In libreoffice writer when forcing content after a page break to appear on the next odd page the pdf export fails to inject blank pages. Steps to Reproduce: 1. Create new odt file. 2. Set the Page style to "Left Page". 3. Insert a page break (Page count should now be 3). 4. Export to pdf. Actual Results: Pdf has 2 pages instead of 3. Print Preview will correctly show 3 pages. Expected Results: Pdf should match print preview and have 3 pages. Reproducible: Always User Profile Reset: Yes Additional Info: Reproduced in 6.2.8.2 and 7.1.0.0 Beta1 Version: 7.1.0.0.beta1 (x64) Build ID: 828a45a14a0b954e0e539f5a9a10ca31c81d8f53 CPU threads: 16; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win Locale: en-AU (en_AU); UI: en-US Calc: CL Version: 6.2.8.2 (x64) Build ID: f82ddfca21ebc1e222a662a32b25c0c9d20169ee CPU threads: 16; OS: Windows 10.0; UI render: GL; VCL: win; Locale: en-AU (en_AU); UI-Language: en-US Calc: CL
Created attachment 168975 [details] Example File which causes the bug
Created attachment 168976 [details] Exported pdf
By default, "Export automatically inserted blank pages" option is not checked in PDF export dialog [1]. If you open this dialog using File->Export As->Export As PDF, and check that option, you will have it saved in user options, which will cause all following direct export operations to use the flag. Therefore, it works as designed. Closing NOTABUG. [1] https://help.libreoffice.org/7.1/en-US/text/shared/01/ref_pdf_export_general.html#bm_id5027619