Bug 153854 - displayed, printed, preview number of pages does not match (prints an extra blank page)
Summary: displayed, printed, preview number of pages does not match (prints an extra b...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-27 12:47 UTC by Klim
Modified: 2023-03-01 20:34 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
document with bug (10.84 KB, application/vnd.oasis.opendocument.text)
2023-02-27 12:48 UTC, Klim
Details
how it looks (123.52 KB, image/png)
2023-02-27 12:48 UTC, Klim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klim 2023-02-27 12:47:42 UTC
Description:
when printing page number 3, it prints a blank page and the page counter shows 4 pages.

Steps to Reproduce:
1. open document
2. open print dialog
3. set range of pages to number 3

Actual Results:
when printing page number 3, it prints a blank page and the page counter shows 4 pages.

Expected Results:
page number 3 is expected to be the last one, i.e. 3 pages in total.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
in version 5.1.6 print page number 3 is displayed as no page. in version 5.2.0-7.6.0 print page number 3 is output as a blank page.
the document is made in MSO.
checking on windows 7, 8.1, 10, with 256 printers and all configuration.
Comment 1 Klim 2023-02-27 12:48:24 UTC
Created attachment 185610 [details]
document with bug
Comment 2 Klim 2023-02-27 12:48:52 UTC
Created attachment 185611 [details]
how it looks
Comment 3 ajlittoz 2023-02-28 10:02:31 UTC
Your first pages are page-styled with MPF1 which requires different header/footer on left and right pages. But this does not seem to be the cause.

Your last page is styled MPF1 which does not differentiate left and right pages. It is preceded by a manual break which forces page number to 146, an even value.

Presently, LO considers as an absolute rule that odd pages are on right and even pages on left. Consequently, after page 2, a blank page is inserted to respect parity.

Bug 150913 comment 8 discusses possible enhancement to page break attributes to cope with author decision and taste.

As such your problem is not a bug per se but a consequence of the absolute rule mentioned above.
Comment 4 Klim 2023-02-28 11:59:20 UTC
(In reply to ajlittoz from comment #3)
in my opinion, the document created in MSO (by OCR function) should also look like in LO. I expect LO to detect the source of the document and turn off the 'Print automatically inserted blank page' option. but I'm not sure of my conclusion and the sufficiency of this solution.
Comment 5 Klim 2023-03-01 20:34:12 UTC
I think this is a formatting problem, not a bug. closed.