diff --git a/pandora/document/utils.py b/pandora/document/utils.py index f6530ba9..e5f49345 100644 --- a/pandora/document/utils.py +++ b/pandora/document/utils.py @@ -11,7 +11,7 @@ def pdfinfo(pdf): p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) stdout, stderr = p.communicate() data = {} - for line in stdout.strip().split('\n'): + for line in stdout.decode('utf-8').strip().split('\n'): parts = line.split(':') key = parts[0].lower().strip() if key: