PyDrive icon indicating copy to clipboard operation
PyDrive copied to clipboard

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

Open saif-md opened this issue 5 years ago • 1 comments

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?

saif-md avatar Jul 21 '20 11:07 saif-md

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

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

shcheklein avatar Jul 22 '20 02:07 shcheklein