carboncoop / home-energy-health-check

A simple energy assessment framework to assess a home's key energy efficiency issues.
2 stars 2 forks source link

PDF page number functionality #28

Closed lowwintersun closed 6 years ago

lowwintersun commented 6 years ago

Can the page numbers within the PDF be numbered?

AppSynergy commented 6 years ago

Yes, they can. we can set e.g. a header or footer on each page of the pdf.

There's a couple of page number variables, so we can set the footer content to e.g.

'Page [page] of [toPage]'

We can add align headers / footers center, left or right - and there's config for font size, font family, and offset from main content.

https://wkhtmltopdf.org/usage/wkhtmltopdf.txt ( --> Headers And Footer Options: )

lowwintersun commented 6 years ago

Cool, let's go for: Footer Page [page] of [toPage] Arial, 8pt, justified right, dark blue colour

lowwintersun commented 6 years ago

Black or default colour is fine