Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aim trying convert scanned pdf #2

Open
gnuanwar opened this issue Apr 13, 2019 · 0 comments
Open

aim trying convert scanned pdf #2

gnuanwar opened this issue Apr 13, 2019 · 0 comments

Comments

@gnuanwar
Copy link

iam trying convert scanned pdf to text
anwar@anwar-Latitude-E5440 ~/langscape/Pdf2Text $ python3 pdf2text.py
1.1
INFO:main:Running pdf2text.py 1.1
WARNING:googleapiclient.discovery_cache:file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/discovery_cache/init.py", line 36, in autodetect
from google.appengine.api import memcache
ImportError: No module named 'google.appengine'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in
from oauth2client.contrib.locked_file import LockedFile
ImportError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in
from oauth2client.locked_file import LockedFile
ImportError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/discovery_cache/init.py", line 41, in autodetect
from . import file_cache
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in
'file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth')
ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
INFO:googleapiclient.discovery:URL being requested: GET https://www.googleapis.com/discovery/v1/apis/drive/v3/rest
INFO:googleapiclient.discovery:URL being requested: POST https://www.googleapis.com/drive/v3/files?alt=json&fields=id
INFO:oauth2client.transport:Refreshing due to a 401 (attempt 1/2)
INFO:oauth2client.client:Refreshing access_token
INFO:main:Input Folder name = input
INFO:main:Output Folder name = output
INFO:main:Columns = 1
input/boodhar_sirithar_scan.pdf
INFO:main:File Type = pdf
INFO:main:Created Temp folder OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21
INFO:main:Aligining the Pages of PDF file.

INFO:main:Running /usr/bin/mutool poster -x 1 "input/boodhar_sirithar_scan.pdf" OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/currentfile.pdf
INFO:main:Spliting the PDF into single pages.

INFO:main:Running /usr/bin/pdfseparate OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/currentfile.pdf OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/pg-%05d.pdf
INFO:main:Joining the PDF files ...

INFO:main:Converting all the PDF files to JPEG images
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00037.pdf
page_00037
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00037.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00037.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00036.pdf
page_00036
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00036.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00036.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00001.pdf
page_00001
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00001.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00001.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00068.pdf
page_00068
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00068.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00068.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00008.pdf
page_00008
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00008.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00008.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00033.pdf
page_00033
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00033.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00033.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00042.pdf
page_00042
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00042.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00042.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00045.pdf
page_00045
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00045.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00045.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00057.pdf
page_00057
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00057.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00057.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00041.pdf
page_00041
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00041.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00041.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00050.pdf
page_00050
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00050.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00050.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00085.pdf
page_00085
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00085.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00085.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00063.pdf
page_00063
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00063.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00063.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00012.pdf
page_00012
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00012.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00012.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00054.pdf
page_00054
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00054.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00054.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00029.pdf
page_00029
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00029.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00029.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00038.pdf
page_00038
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00038.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00038.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00032.pdf
page_00032
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00032.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00032.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00067.pdf
page_00067
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00067.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00067.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00046.pdf
page_00046
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00046.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00046.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00021.pdf
page_00021
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00021.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00021.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00017.pdf
page_00017
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00017.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00017.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00023.pdf
page_00023
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00023.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00023.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00007.pdf
page_00007
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00007.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00007.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00065.pdf
page_00065
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00065.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00065.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00048.pdf
page_00048
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00048.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00048.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00010.pdf
page_00010
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00010.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00010.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00047.pdf
page_00047
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00047.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00047.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00078.pdf
page_00078
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00078.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00078.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00035.pdf
page_00035
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00035.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00035.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00082.pdf
page_00082
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00082.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00082.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00013.pdf
page_00013
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00013.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00013.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00020.pdf
page_00020
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00020.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00020.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00059.pdf
page_00059
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00059.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00059.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00009.pdf
page_00009
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00009.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00009.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00075.pdf
page_00075
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00075.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00075.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00066.pdf
page_00066
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00066.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00066.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00034.pdf
page_00034
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00034.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00034.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00006.pdf
page_00006
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00006.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00006.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00072.pdf
page_00072
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00072.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00072.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00044.pdf
page_00044
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00044.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00044.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00003.pdf
page_00003
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00003.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00003.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00051.pdf
page_00051
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00051.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00051.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00055.pdf
page_00055
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00055.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00055.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00011.pdf
page_00011
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00011.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00011.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00026.pdf
page_00026
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00026.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00026.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00052.pdf
page_00052
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00052.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00052.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00031.pdf
page_00031
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00031.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00031.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00071.pdf
page_00071
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00071.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00071.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00018.pdf
page_00018
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00018.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00018.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00076.pdf
page_00076
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00076.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00076.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00040.pdf
page_00040
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00040.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00040.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00025.pdf
page_00025
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00025.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00025.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00030.pdf
page_00030
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00030.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00030.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00027.pdf
page_00027
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00027.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00027.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00019.pdf
page_00019
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00019.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00019.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00024.pdf
page_00024
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00024.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00024.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00060.pdf
page_00060
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00060.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00060.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00053.pdf
page_00053
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00053.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00053.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00077.pdf
page_00077
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00077.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00077.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00022.pdf
page_00022
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00022.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00022.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00028.pdf
page_00028
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00028.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00028.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00016.pdf
page_00016
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00016.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00016.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00070.pdf
page_00070
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00070.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00070.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00069.pdf
page_00069
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00069.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00069.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00049.pdf
page_00049
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00049.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00049.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00056.pdf
page_00056
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00056.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00056.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00015.pdf
page_00015
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00015.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00015.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00014.pdf
page_00014
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00014.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00014.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00058.pdf
page_00058
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00058.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00058.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00084.pdf
page_00084
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00084.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00084.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00073.pdf
page_00073
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00073.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00073.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00074.pdf
page_00074
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00074.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00074.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00062.pdf
page_00062
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00062.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00062.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00061.pdf
page_00061
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00061.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00061.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00064.pdf
page_00064
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00064.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00064.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00005.pdf
page_00005
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00005.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00005.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00043.pdf
page_00043
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00043.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00043.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00079.pdf
page_00079
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00079.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00079.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00081.pdf
page_00081
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00081.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00081.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00039.pdf
page_00039
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00039.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00039.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00004.pdf
page_00004
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00004.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00004.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00002.pdf
page_00002
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00002.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00002.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00080.pdf
page_00080
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00080.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00080.pdf
OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00083.pdf
page_00083
INFO:main:/usr/bin/gs -q -DNOPAUSE -DBATCH -r800 -SDEVICE=jpeg -sOutputFile=OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00083.jpg OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00083.pdf
INFO:main:

uploading OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00001.jpg to google.
{'mimeType': 'application/vnd.google-apps.document', 'name': 'OCR-boodhar_sirithar_scan.pdf-temp-2019-04-13-20-34-21/page_00001.jpg', 'parents': ['1Z0i2gKNpttbYrDOFNI7QCKlCZuZdClbm']}
<googleapiclient.http.MediaFileUpload object at 0x7fb10cc61240>
INFO:googleapiclient.discovery:URL being requested: POST https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id&uploadType=multipart
Traceback (most recent call last):
File "pdf2text.py", line 311, in
fields='id').execute()
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/http.py", line 846, in execute
method=str(self.method), body=self.body, headers=self.headers)
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/http.py", line 183, in _retry_request
raise exception
File "/usr/local/lib/python3.5/dist-packages/googleapiclient/http.py", line 164, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/oauth2client/transport.py", line 175, in new_request
redirections, connection_type)
File "/usr/local/lib/python3.5/dist-packages/oauth2client/transport.py", line 282, in request
connection_type=connection_type)
File "/usr/local/lib/python3.5/dist-packages/httplib2/init.py", line 1926, in request
cachekey,
File "/usr/local/lib/python3.5/dist-packages/httplib2/init.py", line 1595, in _request
conn, request_uri, method, body, headers
File "/usr/local/lib/python3.5/dist-packages/httplib2/init.py", line 1502, in _conn_request
conn.request(method, request_uri, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 936, in _send_output
self.send(message_body)
File "/usr/lib/python3.5/http/client.py", line 908, in send
self.sock.sendall(data)
File "/usr/lib/python3.5/ssl.py", line 891, in sendall
v = self.send(data[count:])
File "/usr/lib/python3.5/ssl.py", line 861, in send
return self._sslobj.write(data)
File "/usr/lib/python3.5/ssl.py", line 586, in write
return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe
anwar@anwar-Latitude-E5440 ~/langscape/Pdf2Text $ ^C
anwar@anwar-Latitude-E5440 ~/langscape/Pdf2Text $

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

No branches or pull requests

1 participant