Bugfix: Printed reports count their pages 

Description 

A company footer on printed documents that named the number of pages, such as "Page 1 of 2", showed 0 as the number of pages in every PDF.

Impact 

The footer of a printed report or list names the real number of pages.