mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Convert Unicode strings in the document info (#1458)
This commit is contained in:
parent
1a067ccf40
commit
08a241fc4b
2 changed files with 11 additions and 4 deletions
|
@ -571,8 +571,8 @@ var PDFView = {
|
|||
pdfTitle = metadata.get('dc:title');
|
||||
}
|
||||
|
||||
if (!pdfTitle && info && info.has('Title'))
|
||||
pdfTitle = info.get('Title');
|
||||
if (!pdfTitle && info && info['Title'])
|
||||
pdfTitle = info['Title'];
|
||||
|
||||
if (pdfTitle)
|
||||
document.title = pdfTitle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue