I selected text worth two pages in a longer document. The selection was not at the end of the document. The document had a footer showing <<"current page" / "total pages">>. When printing the two pages, the footer on both pages said << 136 / 136 >>.
The selection would correspond to a range from <<130 / 136>> up to <<131 / 136>>, just for clarity.
Use "130,131" under "Pages" in section "Range and Copies" of the print dialog and you should get the correct numbering of pages as "130/136" and "131/136" I'm not sure whether this is a bug or solely due to the fact that you try to print a text "selection" (confirming that your description is correct for this case on Version: 7.1.0.3 / LibreOffice Community Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kf5 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded )
When I wrote "text worth two pages" I mean that the section selected did not align with whole pages. So printing the two pages that contain the selection would be a work-around, but still a different thing. So what did I expect: Either seeing the original page and total numbers, but as the text got "re-flown" to start at the top of the first page, seeing <<1 / 2>> and <<2 / 2>> is probably what I should expect. Probably there is no perfect solution, but showing two identical page numbers probably not the best alternative.
Looks like a duplicate. If not, please explain why. Rule of thumb is search before reporting. Another best practice is to attach minimal sampke. *** This bug has been marked as a duplicate of bug 118378 ***