title: Google Cloud Print API - white page when printing PDF
body: <p>I want to send a PDF file to be printed using the Google Cloud Print API. The code bellow will give me a positive message telling me that one page was generate. When I go and check what came out, I gate an empty page. </p>
  
  <p>The same result happens if I save the print on Google Drive.</p>
  
  <h1>The code</h1>
  
  <pre><code>unirest.post('https://www.google.com/cloudprint/submit')
  .header('Authorization', 'Bearer ' + token)
  .header("Accept-Charset", "utf-8")
  .field('xsrf', xsrf_token)
  .field('printerid', printerId)
  .field('ticket', '{"version": "1.0", "print": {}}')
  .field('title', 'Test from Simpe.li')
  .field('contentType', 'application/pdf')
  .attach('content', buffer)
  .end(function (res) {
  
      console.log(res);
  
  });
  </code></pre>
  
  <p>I know that what I'm sending is a PDF, because when I change the </p>
  
  <pre><code>.field('contentType', 'application/pdf')
  </code></pre>
  
  <p>to</p>
  
  <pre><code>.field('contentType', 'text/plain')
  </code></pre>
  
  <p>I will get 53 pages of text which is the raw content of the PDF file.</p>
  
  <p><a href="https://i.stack.imgur.com/kd9ZH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kd9ZH.png" alt="enter image description here"></a></p>
  
  <h1>Question</h1>
  
  <p>What I'm doing wrong?</p>
  
  <h1>Tech spec</h1>
  
  <ul>
  <li>NodeJS v4.1.1</li>
  <li>Unirest v0.4.2</li>
  </ul>