title: Variable page height with wkhtmltopdf
body: <p>I'm trying to print various receipts using wkhtmltopdf (using the webkit reporting tool in openERP).</p>
  
  <p>I have a receipt printer that has a continuous roll of paper. The printer automatically cuts the paper on a page break. This works great on receipts where the height of the "page" is always the same, but I can't figure out how to set the height dynamically on individual pages.</p>
  
  <p>Ideally I want to put a <code>page-break-after:always</code> css command after every receipt and for wkhtmltopdf to set the height of the page to match the height of the content.</p>
  
  <p>I'm guessing the only way is to hack the source code on <a href="https://github.com/antialize/wkhtmltopdf" rel="noreferrer">https://github.com/antialize/wkhtmltopdf</a> but hoping someone has already solved this problem.</p>