Skip to content

Commit

Permalink
solves #50
Browse files Browse the repository at this point in the history
  • Loading branch information
goulu committed Apr 18, 2017
1 parent f2b0650 commit 7055862
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdfminer/pdftypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Binary file added samples/contrib/stamp-no.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion tests/test_tools_pdf2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def run(datapath,filename,options=None):
pdf2txt.main(s.split(' ')[1:])

class TestDumpPDF():


def test_1(self):
run('../samples/','jo')
Expand All @@ -41,5 +40,8 @@ def test_5(self):
def test_6(self):
run('../samples/nonfree/','naacl06-shinyama')

def test_7(self):
run('../samples/contrib/','stamp-no')

if __name__ == '__main__':
nose.runmodule()

0 comments on commit 7055862

Please sign in to comment.