|
|
@ -56,7 +56,8 @@ def pdfinfo(pdf_name, *args):
|
|
|
|
A dictionary containing the lines of stdout from calling 'pdfinfo'
|
|
|
|
A dictionary containing the lines of stdout from calling 'pdfinfo'
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
command_str = ['pdfinfo', *args, pdf_name]
|
|
|
|
command_str = ['pdfinfo', *args, pdf_name]
|
|
|
|
result = subprocess.run(command_str, stdout=subprocess.PIPE)
|
|
|
|
result = subprocess.run(
|
|
|
|
|
|
|
|
command_str, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
|
|
|
stdout = result.stdout.decode('utf-8').split('\n')
|
|
|
|
stdout = result.stdout.decode('utf-8').split('\n')
|
|
|
|
|
|
|
|
|
|
|
|
pdf_info = {}
|
|
|
|
pdf_info = {}
|
|
|
|