title: Convert PDF to any with Google Drive API
body: <p>I'm trying to convert PDF to any allowed format but response does not content exportLinks after a pdf file was uploaded.</p>
  
  <p>I've already tried many ways to manage for to get exportLinks. Other doc formats can be uploaded and be exported successfully. I have used code from developers.google.com.</p>
  
  <pre><code>media_body = MediaFileUpload(filename, mimetype=mime_type, resumable=False)
  body = {'title': title,
          'description': description,
          'mimeType': mime_type,
          }
  # Set the parent folder.
  if parent_id:
      body['parents'] = [{'id': parent_id}]
  
  try:
      request = service.files().insert(body=body, media_body=media_body)
      #request.uri = "%s&amp;convert=true&amp;ocr=true" % request.uri
      #request.uri = "%s&amp;convert=true" % request.uri
      request.uri = "https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart&amp;alt=json&amp;convert=true"
      logger.debug("Request: %s", request.uri)
      file_obj = request.execute()
      # Uncomment the following line to print the File ID
      # print 'File ID: %s' % file_obj['id']
      import json
      logger.debug('Get file result: %s' % json.dumps(file_obj, indent=4))
      return file_obj
  
  ...
  export_links = source_file.get('exportLinks')
  if not export_links:
      logger.debug('Warning: exportLinks does not exist')
  </code></pre>
  
  <p>Why there is no exportLinks in the PDF upload's response? </p>
  
  <p>Please, Google Team agree that PDF can be uploaded and exported by Drive API.</p>
  
  <p>Thanks</p>
  
  <p>[UPD]
  Here is a request dump of Httplib2. As I see query is set properly according to manual.</p>
  
  <pre><code>Request: https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart&amp;alt=json&amp;convert=true
  send: 'POST /upload/drive/v2/files?uploadType=multipart&amp;alt=json&amp;convert=true HTTP/1.1\r\n
  Host: www.googleapis.com\r\n
  content-length: 4425\r\n
  accept-encoding: gzip, deflate\r\n
  accept: application/json\r\n
  user-agent: google-api-python-client/1.0\r\n
  content-type: multipart/related; boundary="===============0758269123680398078=="\r\n
  authorization: Bearer ya29.AHES6ZRDT0AJX8a5JN_u_0epF6ZCMGcqwyru1wzj22oVlMO9CfmFzlo\r\n
  \r\n
  --===============0758269123680398078==\nContent-Type: application/json\nMIME-Version: 1.0\n\n{"mimeType": "application/pdf", "description": "", "title": "Short_pdf.pdf"}\n--===============
  </code></pre>
  
  <p>Here is a downloadLink in the response:
  "downloadUrl": "<a href="https://doc-0c-2c-docs.googleusercontent.com/docs/securesc/2sgoib42bclb5coaj85g5574fd2b65bn/2lnqk989jdaepp4b8igdco1j8fu7m9l3/1373040000000/00639208221381605991/00639208221381605991/0By108D1dgCDkX0NFOXV0V2pNd2s?h=16653014193614665626&amp;e=download&amp;gd=true">https://doc-0c-2c-docs.googleusercontent.com/docs/securesc/2sgoib42bclb5coaj85g5574fd2b65bn/2lnqk989jdaepp4b8igdco1j8fu7m9l3/1373040000000/00639208221381605991/00639208221381605991/0By108D1dgCDkX0NFOXV0V2pNd2s?h=16653014193614665626&amp;e=download&amp;gd=true</a>",</p>