Philippe Guglielmetti 2017-04-18 18:20:31 +02:00
parent f2b0650ad5
commit 7055862eaf
3 changed files with 9886 additions and 2 deletions

View File

@ -175,7 +175,7 @@ def stream_value(x):
if not isinstance(x, PDFStream):
if settings.STRICT:
raise PDFTypeError('PDFStream required: %r' % x)
return PDFStream({}, '')
return PDFStream({}, b'')
return x

9882
samples/contrib/stamp-no.pdf Normal file

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,6 @@ def run(datapath,filename,options=None):
pdf2txt.main(s.split(' ')[1:])
class TestDumpPDF():
def test_1(self):
run('../samples/','jo')
@ -41,5 +40,8 @@ class TestDumpPDF():
def test_6(self):
run('../samples/nonfree/','naacl06-shinyama')
def test_7(self):
run('../samples/contrib/','stamp-no')
if __name__ == '__main__':
nose.runmodule()