Bug 81707 - Calc PDF EXPORT: Total pages count is not correct
Summary: Calc PDF EXPORT: Total pages count is not correct
Status: RESOLVED DUPLICATE of bug 57922
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) rc
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: Not Assigned
Depends on:
Reported: 2014-07-24 08:19 UTC by Kevin Suo
Modified: 2015-04-01 10:55 UTC (History)
0 users

See Also:
Crash report or crash signature:

test ods file to be exported as pdf (13.12 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-07-24 08:19 UTC, Kevin Suo

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2014-07-24 08:19:59 UTC
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,

This is really annoying...
Comment 1 Kevin Suo 2014-07-24 08:36:58 UTC
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.
Comment 2 Kevin Suo 2014-07-24 11:39:58 UTC

*** This bug has been marked as a duplicate of bug 57922 ***