Bug 57922 - PDF Export: Field Command "Pages" produces wrong count
Summary: PDF Export: Field Command "Pages" produces wrong count
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
: 81707 (view as bug list)
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2012-12-05 20:09 UTC by famo
Modified: 2016-10-29 09:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example Spreadsheet (10.61 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-12-05 20:09 UTC, famo
Details
Example of PDF-Export with the faulty behavior (10.20 KB, application/x-download)
2012-12-05 20:11 UTC, famo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description famo 2012-12-05 20:09:28 UTC
Created attachment 71042 [details]
Example Spreadsheet

When using the PDF-Export Dialog (via File - Export as PDF...) in Calc and the  field command "Pages" (##) in footer/header. The field command "Pages" upon export is entered with a wrong count.


How to reproduce:
1. Open attached Spreadsheet (Page-Test.ods)
2. Choose File - Export as PDF...
2.a Under Range, select Pages and 1-3
3. Hit Export
4. Open exported pdf-File with 3 pages

Current behavior:
5. On the footer of each page it reads "x of 6" (pages) - although there are only 3 pages in total.

Expected behavior:
5. On the footer of each page it should read "x of 3" (pages).


This is especially annoying when passing the pdf to other people. Due to the wrong count "x of 6" instead of "x of 3", people "miss the other pages" - which triggers unneeded questions/answers i.e. phone calls/emails/etc.
Comment 1 famo 2012-12-05 20:11:10 UTC
Created attachment 71043 [details]
Example of PDF-Export with the faulty behavior

Example of PDF-Export with the faulty behavior.
Comment 2 Jorendc 2013-01-29 20:40:07 UTC
Hi,

Thanks for reporting!
I can reproduce this behavior.

> This is especially annoying when passing the pdf to other people. Due to the
> wrong count "x of 6" instead of "x of 3", people "miss the other pages" -
> which triggers unneeded questions/answers i.e. phone calls/emails/etc.

Agreed!

Thanks for providing this clear steps!
Because this is not a 'bug' but rather an 'enhancement' I mark it as such.

Kind regards,
Joren
Comment 3 Kevin Suo 2014-07-24 11:37:45 UTC
Hi, I found this problem today when I was doing my important daily work, and filed bug 81707.

But finally I closed thay bug, because I realized that calc is not showing the wrong page count, - it is trying to export all sheets. see my comment in bug 81707.

Should we still keep track this bug, or refile another one?
Comment 4 Kevin Suo 2014-07-24 11:39:58 UTC
*** Bug 81707 has been marked as a duplicate of this bug. ***
Comment 5 Kevin Suo 2014-07-24 11:56:47 UTC
Bug 55273  may be the issue.