Created attachment 103389 [details] test ods file to be exported as pdf If a spreadsheet contains more than one sheet, when export to pdf, the "total pages" count is not correct, it counts for the total pages of all sheets, rather than the current sheet. Steps to reproduce: 1. Open the attached ods file. 2. Print preview --> the footer shows "Page 1 of 1" 3. File->Export as PDF, input "1" in the "Pages" field, export --> The exported PDF shows "Page 1 of 2" in footer. (Expected: "Page 1 of 1" in footer) Windows XP SP3, Version: 4.2.6.1 This is really annoying...
The page count is not correct because when you input page numbers in the "pages" field, calc will start to export pdf based on all the sheets, rather than the current selected sheet.. when the pages is defined in the "pages" field, calc should export only the selected sheet. This is the same as in print preview. I think I should close this bug, and open another one.
*** This bug has been marked as a duplicate of bug 57922 ***