title: Google Drive API v3 - Convert doc to pdf
body: <p>I am trying to convert a Google Doc file to pdf.</p>
  
  <p>I tried to use the <code>files.copy</code> method with the <code>mimeType</code> in the resource, as suggested in their "Migrate to Google Drive v3" <a href="https://developers.google.com/drive/api/v3/migration" rel="nofollow noreferrer">documentation</a>. But it doesn't work: it makes a simple copy without converting. It looks as if the mimeType is never taken into account...</p>
  
  <pre><code>gapi.client.drive.files.copy({
    name: 'My new PDF',
    fileId: sourceId,
    parents: [destinationId],
    mimeType: 'application/pdf'
  })
  </code></pre>
  
  <p>(Note: I'm trying to do this in the browser)</p>
  
  <p>I also tried with 'text/plain', but didn't change either.</p>
  
  <p><strong>UPDATE</strong>: </p>
  
  <p>It looks like converting during a copy method can only convert to a Google-specific mimeType (document, sheets, ...)</p>