Latest version with pages in header/footer.

Added header attribute which stores only page numbers in simple (X) and complex ("customtext" X из TOTAL) format.