Philippe Guglielmetti 2017-07-20 21:17:06 +02:00
parent 67bf5ab124
commit b010db6049
3 changed files with 5 additions and 0 deletions

View File

@ -587,6 +587,8 @@ class PDFDocument(object):
if settings.STRICT: if settings.STRICT:
raise PDFSyntaxError('Catalog not found!') raise PDFSyntaxError('Catalog not found!')
return return
KEYWORD_OBJ = KWD(b'obj')
# _initialize_password(password=b'') # _initialize_password(password=b'')
# Perform the initialization with a given password. # Perform the initialization with a given password.

BIN
samples/nonfree/175.pdf Normal file

Binary file not shown.

View File

@ -50,5 +50,8 @@ class TestDumpPDF():
def test_8(self): def test_8(self):
run('../samples/contrib/','2b','-A -t xml') run('../samples/contrib/','2b','-A -t xml')
def test_9(self):
run('../samples/nonfree/','175') # https://github.com/pdfminer/pdfminer.six/issues/65
if __name__ == '__main__': if __name__ == '__main__':
nose.runmodule() nose.runmodule()