title: How to do page numbering in header/footer htmls with wkhtmltopdf?
body: <p>I'm developing an electronic invoicing system, and one of our features is generating PDFs of the invoices, and mailing them. We have multiple templates for invoices, and will create more later, so we decided to use HTML templates, generate HTML document, and then convert it to PDF. But we're facing a problem with wkhtmltopdf, that as far as I know (I've been Googleing for days to find the solution) we cannot simply both use HTML as header/footer, and show page numbers in them.</p>
  
  <p>In a bug report (or such) ( <a href="http://code.google.com/p/wkhtmltopdf/issues/detail?id=140" rel="noreferrer">http://code.google.com/p/wkhtmltopdf/issues/detail?id=140</a> ) I read that with JavaScript it is achievable this combo. But no other information on how to do it can be found on this page, or elsewhere.</p>
  
  <p>It is, of course not so important to force using JavaScript, if with wkhtmltopdf some CSS magic could work, it would be just as awesome, as any other hackish solutions.</p>
  
  <p>Thanks!</p>