chrisglass/xhtml2pdf — pull request #42 by datakurre (2012-03-30 07:12:30+00:00)
Title: Inserting total page count with <pdf:pagecount/>

Hi,

I don't expect this to me merged, at least not yet yet, but I'd like to discuss on how this should be implemented properly.

I've understood that adding a proper support for pagecount-tag, would require a one more pass for layout process (or maybe it could be combined with the TOC-pass).

Anyway, I've failed to do this so far, because I'm not familiar enough with pisa/reportlab yet.

Currently, I'm just injecting an error prone placeholder for page-content and doing a search & replace for the final output. It's not hard to find problems with that approach and that's why I'm requesting help for this.

-Asko