fixed issue #59

The page-number is stored in an instance of PmlPageTemplate, which is initialised by every "page" css-argument. In this patch the page-number is stored in an instance of PmlBaseDoc, which is available over the canvas variable. Thus issue #59 is fixed.