Merge branch 'master' into Develop

This commit is contained in:
Ozzie Isaacs
2022-02-01 20:31:03 +01:00
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -233,7 +233,10 @@ def pdf_meta(tmp_file_path, original_file_name, original_file_extension):
if subject == '':
subject = doc_info.subject
if tags == '' and '/Keywords' in doc_info:
tags = doc_info['/Keywords']
if isinstance(doc_info['/Keywords'], bytes):
tags = doc_info['/Keywords'].decode('utf-8')
else:
tags = doc_info['/Keywords']
else:
title = original_file_name