title: Print on roll paper
body: <p>I want to print on a roll paper from chrome. The length of the paper seems to be static, so that roll paper can not be used effectively.</p>
  
  <p>E.g. if we print "Hello world" from:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;Hello World&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It will print like 27cm length of paper (because paper format is set to A4). Is there a CSS-trick to have a dynamic height in chrome?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I am <em>not</em> looking for a one-time configuration for a specific length. I am searching for a dynamic page height. Firefox and IE are able to print dynamically, but the chrome virtual print driver seems not to be. </p>
  
  <p><strong>Update 2</strong></p>
  
  <p>Just to make it more clear:</p>
  
  <p><img src="https://i.stack.imgur.com/DPxyk.png" alt="enter image description here"></p>
  
  <p>This is what I do <strong>not</strong> want.  The length of the paper should be as height as the content. The content is dynamic.</p>