title: phantomjs incorrect pdf rendering
body: <p>I am trying to generate a pdf from an html page.
  the html is very simple and renders a centered image for each page.</p>
  
  <p>the css i have works correctly when i render the html but it does not when I try to create a pdf out of it with <a href="https://github.com/marcbachmann/node-html-pdf" rel="nofollow noreferrer"><code>node-html-pdf</code></a>.</p>
  
  <p>I also created a little express app on github which reproduces the problem:
  <a href="https://github.com/aschmid/phantomjs2pdf" rel="nofollow noreferrer">https://github.com/aschmid/phantomjs2pdf</a></p>
  
  <p>what is weird in the pdf is that the first 2 pages render correctly.<br>
  Then each page after that is 200% the size of the previous one:</p>
  
  <p><a href="https://i.stack.imgur.com/waKk9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/waKk9.png" alt="enter image description here"></a></p>
  
  <p>i am sure this is an issue with the css.
  also i want to create css rules which will apply to each papersize (letter, tabloid, A4, ....) or orientation (portrait, landscape) and center the image on the page in the pdf.</p>
  
  <p>can somebody point me to the right direction?</p>