Commit f008ef37 authored by Mattia Bondanza's avatar Mattia Bondanza

Solved a bug for some strange PDF...

parent d13e292b
#!/usr/bin/python2
__import__("bindinghelper")
from bindinghelper import *
from PyPDF2 import PdfFileReader, PdfFileWriter
......@@ -61,7 +62,7 @@ if infile[ len(infile) - 4 : len( infile ) ] != '.pdf':
#Prova ad aprire il file di input
try:
book = PdfFileReader( infile )
book = PdfFileReader( infile, strict=False )
except:
print 'Non e\' stato possibile aprire il file di input specificato, controlla l\'indirizzo e i permessi',
print 'di accesso al file.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment