title: Export data from the Google Sheet to PDF PYTHON
body: <p>I am getting all the data present in google sheet using code below,
  i want to write all these data to the pdf file and download that.</p>
  <pre><code>import gspread
  import sys 
  print(sys.path)
  import os
  #sys.path.append('/usr/lib/python3/dist-packages')
  from oauth2client.service_account import ServiceAccountCredentials
  
  scope = [
  'https://www.googleapis.com/auth/spreadsheets',
  'https://www.googleapis.com/auth/drive'
  ]
  path = os.path.abspath('cred.json')
  credentials=ServiceAccountCredentials.from_json_keyfile_name('cred.json',scope)
  client=gspread.authorize(credentials)
  sheet=client.open('xyz').sheet1
  data=sheet.get_all_records()
  print(data)
  </code></pre>