I need a utility that can be called from an automation script to convert a CSS-styled HTML document to PDF. The twist is that I want to add page numbers for all the sections in the table of contents (and a page number in the footer of each page).
A colleague found a utility called Prince which does this, but it's pretty expensive--$3800 for a server license, or $495 per user, per machine.
Is there any FOSS alternative, or even some other commercially-available alternative which is less expensive; say, closer to the range of $100 per user or perhaps even $500 for a floating license?