title: Paginating HTML document for printing with WebKit-based browsers
body: <p><strong>Internet Explorer has <a href="http://msdn.microsoft.com/en-us/library/aa753280%28v=vs.85%29.aspx" rel="noreferrer">Print Template</a> engine</strong>, where I can use <code>DEVICERECT</code> element to represent a physical page, then use <code>LAYOUTRECT</code> element as a rectangular view to flow the HTML document through into the page and drive the pagination. That prevents lines from being cut-off in the middle between adjacent pages. This mechanism is described in details <a href="http://www.google.com/patents/US7647553" rel="noreferrer">here</a>.</p>
  
  <p><strong>Does WebKit provide a similar feature?</strong> Specifically, does PhantomJS do? I'm looking for anything that would allow to paginate an existing HTML document which doesn't have predefined page-breaks, and view it paginated as a new transformed HTML or PDF document, without lines being cut-off in middle.</p>