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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user