Allow encrypted PDF total page number instrospection to work
when PDF has non ASCII user properties. GitLab issue #411. Thanks to @corneliusludmann for the report and investigation. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Improve tag widget customization by moving the markup to its own template.
|
- Improve tag widget customization by moving the markup to its own template.
|
||||||
- Fix document page widget appearance in the document page list view.
|
- Fix document page widget appearance in the document page list view.
|
||||||
- Make document version order deterministic.
|
- 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)
|
2.6.1 (2017-07-18)
|
||||||
==================
|
==================
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ class Python(ConverterBase):
|
|||||||
page_count = int(
|
page_count = int(
|
||||||
filter(
|
filter(
|
||||||
lambda line: line.startswith('Pages:'),
|
lambda line: line.startswith('Pages:'),
|
||||||
process.stdout.split(b'\n')
|
force_text(process.stdout).split('\n')
|
||||||
)[0].replace('Pages:', '')
|
)[0].replace('Pages:', '')
|
||||||
)
|
)
|
||||||
file_object.seek(0)
|
file_object.seek(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user