diff --git a/HISTORY.rst b/HISTORY.rst index 95011b522d..f7cd302f6e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,6 +6,7 @@ - Improve tag widget customization by moving the markup to its own template. - Fix document page widget appearance in the document page list view. - Make document version order deterministic. +- Allow total page number instrospection of encrypted PDF with non ASCII user properties. GitLab issue #411. 2.6.1 (2017-07-18) ================== diff --git a/mayan/apps/converter/backends/python.py b/mayan/apps/converter/backends/python.py index 5247c8af1c..b97d4b6d0c 100644 --- a/mayan/apps/converter/backends/python.py +++ b/mayan/apps/converter/backends/python.py @@ -151,7 +151,7 @@ class Python(ConverterBase): page_count = int( filter( lambda line: line.startswith('Pages:'), - process.stdout.split(b'\n') + force_text(process.stdout).split('\n') )[0].replace('Pages:', '') ) file_object.seek(0)