title: Creating PDF files with page layouts using CSS
body: <p>I am searching a system which allows me to generate PDF files from html. I would like to use as much CSS for styling as possible.</p>
  
  <p>Features that would be great:</p>
  
  <ul>
  <li>Repetition of certain elements on each page (header / footer)</li>
  <li>The system should know the number of pages of the generated pdf, so I can insert something like this: page 1 of 5, page 2 of 5, page 3 of 5, etc..</li>
  <li>CSS2 / CSS3 would be great for styling</li>
  <li>Automatic recognition of line breaks</li>
  </ul>
  
  <p>Which software / system / service could be recommended to use html/css for the automatic generation of pdf-files?</p>
  
  <p>It does nos matter if the system is free or commercial. But what does matter to me, that it should be possible to ship the system with an existing software. So if it is commercail ,there should be a possibility to include it into a software stack.</p>