googlearchive / PyDrive

Google Drive API Python wrapper library
Other
1.31k stars 272 forks source link

How to pass the 'ocr: true' parameter when uploading a file using PyDrive? #205

Open saif-md opened 4 years ago

saif-md commented 4 years ago

I want to make an app that will ocr pdfs. I am trying to achieve this passing ocr:true parameter in upload() method. Are there any way to do this? Is the param parameter of upload() supports this?

shcheklein commented 4 years ago

@saif-md have you tried to pass it to the CreateFile call?

CreateFile({"title": title, "parents": [{"id": parent_id}], "ocr": true}