title: Adjust PDF options for PhantomJS
body: <p>I use <a href="http://phantomjs.org/">PhantomJS</a> for PDF generation.</p>
  
  <p>This is my command:</p>
  
  <pre><code>./phantomjs rasterize.js &lt;someurl&gt; test.pdf
  </code></pre>
  
  <p>It generates pdf file but:</p>
  
  <ol>
  <li>The PDF looks nothing like the original website</li>
  <li>I can't set the page orientation</li>
  <li>Also is there any other options I can use for pdf generation?</li>
  </ol>
  
  <p>The following change to <a href="https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js">rasterize.js</a> also doesn't seem to work:</p>
  
  <pre><code>{ format: system.args[3], orientation: 'Letter', margin: '1cm' }
  </code></pre>