Bug 57922

Summary: PDF Export: Field Command "Pages" produces wrong count
Product: LibreOffice Reporter: famo <richard.llom>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: suokunlong
Priority: medium Keywords: filter:pdf
Version: 3.5.7.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=55273
https://bugs.documentfoundation.org/show_bug.cgi?id=90436
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103378    
Attachments: Example Spreadsheet
Example of PDF-Export with the faulty behavior

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.