Skip to content

Commit

Permalink
Fixed wrong decode bool metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevgnen committed Jul 11, 2018
1 parent 99f9b50 commit 4d4ca3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdfplumber/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def __init__(self, stream, pages=None, laparams=None, precision=0.001):
self.metadata[k] = list(map(decode_text, v))
elif isinstance(v, PSLiteral):
self.metadata[k] = decode_text(v.name)
elif isinstance(v, bool):
self.metadata[k] = v
else:
self.metadata[k] = decode_text(v)
self.device = PDFPageAggregator(rsrcmgr, laparams=self.laparams)
Expand Down

0 comments on commit 4d4ca3f

Please sign in to comment.