Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

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

Open
saif-md opened this issue Jul 21, 2020 · 1 comment

Comments

@saif-md
Copy link

saif-md commented Jul 21, 2020

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
Copy link
Collaborator

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants