Google docs do not indicate what happens to the downloaded file when you request OCR, in particular, they do not tell you if there is an answer line.
However, a little experimentation shows that the only way to get OCR data is to search for a document after completing OCR and capturing text.
Here you will find the data structure for "Files": https://developers.google.com/drive/v2/reference/files#resource - that you will then be in the "indexableText", as a string.
Unfortunately, he will not parse any "fields". This will require an understanding of the content ... In addition, it does not capture any email addresses, which is a problem if you are trying to make business cards.
By the way, you will need to wait a while, up to 2 minutes, before the data is available. I'm not quite sure, but it may also be that the object identifier will not be available during this time, so you may need to either start a background process or do something else.
source share