ashiklom / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Enable OCR for Docs upload #338

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
It seems that "google docs upload" does not allow for Docs to apply OCR on the 
uploaded (scanned) document (either PDF, PNG, JPG)? 

What is the expected output? What do you see instead?
When I use googlecl for uploading the scanned document, the result is a Doc 
with a (not scaled) figure in it, whereas when I use the web interface and 
select the OCR option, I get the text in the document instead of only the 
figure.

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
Linux, Debian Lenny.
python-gdata                       2.0.8-1.1 
googlecl                           0.9.11-1 

Please provide any additional information below.

Original issue reported on code.google.com by lvdsta...@gmail.com on 11 Dec 2010 at 7:11

GoogleCodeExporter commented 9 years ago
So by appending '?ocr=true' at the post_uri in the method "upload_single_doc" 
in googlecl/docs/client.py it works (post_uri += '?ocr=true' at line 326). I 
think this should be a command line argument for googlecl. 

Original comment by lvdsta...@gmail.com on 11 Dec 2010 at 7:24

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 17 Dec 2010 at 1:32